Coda Doc Scraper Development Guide
Defines build commands, code style rules, and a column-centric data structure for a Coda document scraper project.
What this file does
Defines build commands, code style rules, and a column-centric data structure for a Coda document scraper project.
When to use it
- Building a React app that scrapes Coda docs
- Standardising code style across a team working on this project
- Understanding the expected data shape for Coda API responses
Assumes this stack
Coda Doc Scraper Development Guide
Build and Test Commands
- Install dependencies:
npm install - Start development server:
npm start - Build for production:
npm run build - Run tests:
npm test - Run a single test:
npm test -- -t "test name"
Code Style Guidelines
Formatting
- React functional components with arrow function syntax
- 2-space indentation
- Tailwind CSS for styling with utility classes
Imports
- Group imports by: React, third-party libraries, components, utilities
- Use absolute imports for project modules
Error Handling
- Wrap API calls in try/catch blocks
- Set error state and display with ErrorDisplay component
- Log errors to console with descriptive messages
Component Structure
- Component folders should contain related components
- Separate presentational and container components
- Use props destructuring in function parameters
State Management
- Use React hooks (useState, useEffect)
- Prefer local state with prop drilling to manage data flow
- Use localStorage for persistent configuration
Naming Conventions
- CamelCase for variables, functions, and components
- PascalCase for component files and React components
- Descriptive function names (handle* for event handlers)
Data Structure
- Column-centric data organization with row values nested under each column
- Transformation of column IDs to human-readable names in row values
- Simplification of nested objects to show only their names
- Complete example:
{
"TableName": {
"ColumnName": {
"name": "ColumnName",
"display": true,
"format": {...},
"rows": [
{
"name": "RowName",
"createdAt": "2025-03-24T12:34:56.789Z",
"value": "Cell value"
}
]
}
}
}
What's inside
5 command sections, 6 code style categories, 1 data structure example
Change this for your project
- Replace
Coda Doc Scraperin the title with your project name - Replace
jondallasjr/coda-doc-scraperwith your repository path - Replace
Codareferences with your actual data source name
Where it goes
Save as CLAUDE.md in your repository root. Claude Code reads it automatically at the start of every session.
Related Documents
Code indexing for AI agents: summarization strategies and evaluation systems
Synthesises 2024-2025 research on code indexing for AI agents, covering summarisation strategies, hybrid retrieval architectures, and evaluation benchmarks.
write-script
Guides an AI through writing a YouTube video script with strict structural, language, and quiz rules for a survival channel.
Claude AI Git Workflow Integration
Recommends using the git-ai-commit CLI tool for AI-generated commit messages instead of manual ones.
Missing Business Agents Research — FLUXION 2026
Identifies 12 missing business operations agents for an indie software company and ranks them by impact and effort with €0 implementation plans.