feat: add claude specs (#26852)

* feat: claude templates

* refactor: new file

* feat: symlink
This commit is contained in:
Udit Takkar authored and GitHub committed 2026-02-10 19:06:31 +00:00
1 parent 81e4241f85
commit cfa0783ebc
13 files changed
+384

No files matched your search

+82
View File
@@ -0,0 +1,82 @@
# Spec-First Development
This folder contains design documents for features in development. Claude reads these to understand what to build and track progress.
## How It Works
1. **Before implementing a feature**, create a spec folder with design docs
2. **Claude reads the design** before writing any code
3. **Progress is tracked** in implementation.md for session continuity
4. **Decisions are recorded** in decisions.md for future reference
5. **Docs are generated** with screenshots when feature is complete
## Starting a New Feature
```bash
cp -r specs/_templates specs/{feature-name}
```
Then tell Claude:
```
"I want to build {feature}. Here's my idea: [description].
Review the codebase and fill in specs/{feature}/design.md"
```
## File Structure
Each feature has:
| File/Folder | Purpose |
|-------------|---------|
| `CLAUDE.md` | Instructions for Claude when working on this feature |
| `design.md` | Source of truth - what to build and how |
| `implementation.md` | Progress tracking - what's done, in progress, blocked |
| `decisions.md` | Architecture Decision Records (ADRs) |
| `prompts.md` | Reusable prompts for common tasks |
| `future-work.md` | Deferred ideas and enhancements |
| `docs/` | Internal documentation with screenshots |
| `docs/screenshots/` | Screenshots captured during development |
## Session Continuity
When starting a new Claude session:
```
"Continue working on {feature}"
```
Claude will read `implementation.md` to pick up where it left off.
## Generating Documentation
When a feature is ready for documentation:
```
"Generate docs with screenshots for {feature}"
```
Claude will:
1. Open the feature in browser
2. Take screenshots of key UI states
3. Save to `specs/{feature}/docs/screenshots/`
4. Update `specs/{feature}/docs/README.md`
## Promoting to Public Docs
When internal docs are ready for customers:
```
"Promote {feature} docs to public"
```
Claude will:
1. Copy content to `docs/{feature}.mdx` (Mintlify format)
2. Move screenshots to `docs/images/{feature}/`
3. Update `docs/mint.json` navigation
4. Adjust language for customer audience
## The Most Important Rule
Every PR must be reviewable in under 10 minutes:
- Max 5-7 files changed (excluding tests)
- Max 500 lines changed
- One focused change per PR
If your change is bigger, split it into multiple PRs.
+21
View File
@@ -0,0 +1,21 @@
# AGENTS.md — {Feature Name}
## Project Context
{Brief description of what this feature does}
## Before Starting Work
1. Read specs/{feature}/design.md
2. Check specs/{feature}/implementation.md for current progress
3. Look at existing patterns in {relevant directories}
## Code Patterns
{Key patterns to follow, reference implementations}
## Don't
- Don't add features not in design.md
- Don't skip tests
- {Feature-specific don'ts}
+1
View File
@@ -0,0 +1 @@
AGENTS.md
+20
View File
@@ -0,0 +1,20 @@
# {Feature Name} Decisions
## ADR-001: {Decision Title}
### Context
{What situation required a decision?}
### Options Considered
1. {Option A} — {pros/cons}
2. {Option B} — {pros/cons}
### Decision
{What was decided and why}
### Consequences
- {Impact of this decision}
+35
View File
@@ -0,0 +1,35 @@
# {Feature Name} Design
## Overview
{What this feature does in 2-3 sentences}
## Problem Statement
{What problem does this solve? Why build this?}
## User Stories
- As a {user type}, I want to {action} so that {benefit}
## Technical Design
### Database Changes
{Schema changes, new tables, migrations}
### API Changes
{New endpoints, tRPC routers, request/response shapes}
### UI Changes
{Components, pages, user flows}
## Edge Cases
{Important edge cases to handle}
## Out of Scope
{What this feature explicitly does NOT include}
+45
View File
@@ -0,0 +1,45 @@
# {Feature Name}
## Overview
{Brief description of what this feature does and why users would use it}
## How to Use
### Step 1: {First Step}
{Description}
![Step 1 Screenshot](./screenshots/step-1.png)
### Step 2: {Second Step}
{Description}
![Step 2 Screenshot](./screenshots/step-2.png)
## Configuration Options
| Option | Description | Default |
|--------|-------------|---------|
| {option} | {description} | {default} |
## Common Use Cases
### {Use Case 1}
{Description of use case and how to achieve it}
### {Use Case 2}
{Description of use case and how to achieve it}
## FAQ
### {Common Question 1}
{Answer}
### {Common Question 2}
{Answer}
Whitespace-only changes.
+9
View File
@@ -0,0 +1,9 @@
# {Feature Name} Future Work
Ideas and enhancements deferred from initial implementation.
## Enhancements
## Technical Debt
## Nice to Have
+15
View File
@@ -0,0 +1,15 @@
# {Feature Name} Implementation
## Status: not-started
## Completed
## In Progress
## Blocked
## Next Steps
1. {First item to implement}
## Session Notes
+40
View File
@@ -0,0 +1,40 @@
# {Feature Name} Prompts
## Sync Implementation Status
Review what's been implemented for {feature} and update specs/{feature}/implementation.md
## Generate Tests
Write tests for {component}. Follow existing test patterns.
## Code Review
Review changes for: type safety, error handling, security, edge cases
## Continue Feature
Continue working on {feature}. Read specs/{feature}/implementation.md for current status.
## Generate Docs with Screenshots
Generate documentation for {feature} with screenshots:
1. Open the feature in the browser
2. Take screenshots of key UI states using the browser extension
3. Save screenshots to specs/{feature}/docs/screenshots/
4. Create/update specs/{feature}/docs/README.md with:
- Feature overview
- How to use (step-by-step with screenshots)
- Configuration options
- Common use cases
## Promote Docs to Public
Promote internal docs to public Mintlify docs:
1. Review specs/{feature}/docs/README.md
2. Copy/adapt content to docs/{feature}.mdx
3. Move screenshots to docs/images/{feature}/
4. Update docs/mint.json navigation
5. Ensure customer-appropriate language (no internal details)