Iterative Web Development Workflow
This skill provides a complete workflow for AI agents working on long-running development projects across multiple sessions. It ensures incremental, reliable progress with proper handoffs between sessions.
Core Principles
- Incremental progress — Work on ONE feature at a time. Finish, test, and commit before moving on.
- Feature list is sacred —
feature_list.json is the single source of truth. See references/feature-list-format.md for rules.
- Git discipline — Commit after every completed feature. Never leave uncommitted work.
- Clean handoffs — Every session ends meeting
references/session-handoff-standards.md.
- Test before build — Verify existing features work before implementing new ones.
- Autonomous execution — Make all decisions yourself. Never stop to ask the human. The human may be asleep.
- Subagent per feature — Each feature is implemented in its own subagent for isolation and parallelism safety.
- Refactor and unit test — Actively extract logic into testable modules. See
references/code-quality.md.
- Visual quality is non-negotiable — Every feature MUST be verified via screenshots. See
references/e2e-verification.md.
- Design with intention — Follow
references/frontend-design.md: bold aesthetic, no generic AI aesthetics.
- Standards are auditable — Quality standards live in reference docs and are systematically verified, not just aspirational checklists.
Standards Documents
All verifiable quality standards are extracted into reference docs. These are used both as guidance during implementation and as audit targets for systematic verification.
| Document |
What it covers |
references/ux-standards.md |
Loading/empty/error states, responsive design, accessibility, forms, tables, navigation |
references/frontend-design.md |
Typography, color, spatial composition, micro-interactions, anti-patterns |
references/code-quality.md |
File organization, testable architecture, unit testing, no duplication |
references/gitignore-standards.md |
Files that must never be committed |
references/e2e-verification.md |
Screenshot rules, visual review criteria, Playwright config, naming conventions |
references/feature-list-format.md |
Feature list structure, critical rules, priority order |
references/session-handoff-standards.md |
Clean codebase, git state, progress tracking — verified at session end |
When to Use Each Workflow
| Workflow |
Use When |
| init-scope |
Starting a new scope, switching scopes, or setting up project structure |
| continue |
Every session after init — picking up work, implementing ALL remaining features, and verifying each with E2E screenshot review |
Workflow: Initialize Scope
Use this to create a new development scope or switch between existing scopes.
Concepts
- Scope: A focused set of features (e.g., "auth", "video-editor", "phase-2")
- Active Scope: Currently active scope stored in
.active-scope
- Scope Files:
specs/{scope}/spec.md and specs/{scope}/feature_list.json
Directory Structure
project-root/
├── specs/
│ ├── auth/
│ │ ├── spec.md
│ │ └── feature_list.json
│ └── video-editor/
│ ├── spec.md
│ └── feature_list.json
├── .active-scope
├── spec.md # Symlink to active scope
├── feature_list.json # Symlink to active scope
├── progress.txt
└── init.sh
Steps
Check current state
ls -la specs/ 2>/dev/null || echo "No scopes yet"
cat .active-scope 2>/dev/null || echo "No active scope"
Create new scope (if needed)
mkdir -p specs/auth
# Create specs/auth/spec.md with specification
Switch to scope
echo "auth" > .active-scope
ln -sf specs/auth/spec.md spec.md
ln -sf specs/auth/feature_list.json feature_list.json
Create feature list — choose the right method:
If scope references a constitution / standards document (e.g., "align with AGENTS.md", "refactor to follow standards"):
Use the Constitution Audit Workflow from references/constitution-audit.md. This is a multi-subagent process:
- Split the reference document into sections (~200 lines each)
- Launch parallel subagents to extract EVERY requirement from each section (read actual text, not summaries)
- Launch parallel subagents to verify each requirement against the actual codebase
- Generate features ONLY from verified violations
- This is NON-NEGOTIABLE for compliance scopes — ad-hoc auditing misses requirements
If scope is new feature development (e.g., "build a PIM system", "add auth"):
Use the standard process from references/feature-list-format.md
Create/update init.sh — see references/init-script-template.md
Commit and update progress log
Workflow: Continue Session (Autonomous Feature Loop)
This is the main workflow. It runs ALL remaining features to completion without stopping.
⚠️ CRITICAL NON-STOP RULE (NON-NEGOTIABLE) ⚠️
You MUST keep looping until EVERY feature in feature_list.json has "passes": true. Do NOT stop after one feature. Do NOT stop after two features. Do NOT stop to report progress to the user. Do NOT ask the human what to do next. The human may be asleep.
After EACH subagent completes, you MUST immediately launch the NEXT subagent for the next incomplete feature. The ONLY acceptable reasons to stop are:
- ALL features have
"passes": true
- A truly unrecoverable error (hardware failure, missing credentials that cannot be worked around)
Stopping to "report back" or "check in" with the user is a VIOLATION of this workflow. The user explicitly chose autonomous execution. KEEP GOING.
Session Startup Sequence
Get bearings
pwd
cat progress.txt
cat feature_list.json
git log --oneline -20
Start environment
bash init.sh
Verify existing features — Run all unit tests (fast) and only the E2E tests for features completed in previous sessions (not this session's new work). Skip E2E tests for features not yet implemented.
Autonomous Feature Loop
After startup, enter the feature loop. This loop runs until ALL features pass:
features_completed_this_session = 0
WHILE there are features with "passes": false in feature_list.json:
1. Read feature_list.json to find next incomplete feature (highest priority first)
2. Launch a SUBAGENT to implement, test, verify screenshots, and commit
3. After subagent completes, VERIFY screenshots and quality (see below)
4. features_completed_this_session++
5. If features_completed_this_session % 5 == 0: run STANDARDS AUDIT (see below)
6. CONTINUE to next feature — do NOT stop
END WHILE
Run FINAL STANDARDS AUDIT before ending session
Launching Feature Subagents (Claude Code)
For each feature, use the Agent tool to launch a subagent. This keeps each feature's work isolated and prevents context window overflow.
Subagent prompt template:
You are implementing a feature for a web application. Work autonomously — do NOT ask questions, make your best judgment on all decisions.
## Project Context
- Working directory: {pwd}
- Active scope: {scope from .active-scope}
## Feature to Implement
- ID: {id}
- Description: {description}
- Category: {category}
- Priority: {priority}
- Test Steps:
{steps as bullet list}
## Standards Documents
Read these reference docs and follow them during implementation:
- references/code-quality.md — Code organization, testability, unit testing rules
- references/ux-standards.md — UX quality requirements (loading/empty/error states, responsive, accessibility)
- references/frontend-design.md — Visual design principles (typography, color, composition)
- references/gitignore-standards.md — Files that must never be committed
- references/e2e-verification.md — Screenshot and E2E testing rules
## Instructions
### Phase 1: Implement
1. Read the relevant source files to understand the current codebase
2. Read the spec.md file for full project context
3. Read the standards documents listed above
4. Implement the feature following existing code patterns and the standards
5. Make sure the implementation is complete and production-quality
### Phase 2: Refactor & Unit Test
Follow references/code-quality.md:
6. Extract pure functions out of UI components and handlers
7. Move business logic into testable utility/service modules
8. Eliminate duplication — reuse existing helpers or extract new shared ones
9. Write unit tests for all extracted logic. Run them until green.
### Phase 3: E2E Test & Visual Verification
Follow references/e2e-verification.md:
10. Write E2E tests with screenshots at key user journey points
11. Run the feature's E2E tests — fix until green
12. MANDATORY: Use the Read tool to visually review EVERY screenshot
Evaluate against the criteria in references/e2e-verification.md.
Fix and re-run until all pass.
### Phase 4: Gitignore Review
Follow references/gitignore-standards.md:
13. Run `git status --short` and check every file against gitignore patterns
14. Add any missing patterns to `.gitignore`, remove from tracking if needed
### Phase 5: Commit
15. Update feature_list.json — change "passes": false to "passes": true
16. Update progress.txt with what was done and current feature pass count
17. Commit all changes:
git add -A && git commit -m "feat: [description] — Implemented feature #[id]: [description]"
## Key Rules
- Follow existing code patterns and the standards documents
- Keep changes focused on this feature only
- Do not break other features
- Make all decisions yourself, never ask for human input
- EVERY test must take screenshots — no exceptions
- EVERY screenshot must be visually reviewed — no exceptions
- BEFORE committing, review ALL files for .gitignore candidates
How to launch the subagent:
Use the Agent tool with subagent_type: "general-purpose". Example:
Agent tool call:
description: "Implement feature #3"
prompt: [filled template above]
After Each Subagent Completes
The subagent handles implementation, testing, screenshot verification, and committing. The parent agent MUST verify:
- Confirm commit —
git log --oneline -1
- Confirm feature_list.json — feature has
"passes": true
- VERIFY SCREENSHOTS EXIST for this feature:
ls e2e/screenshots/{scope}-feature-{id}-*.png 2>/dev/null | wc -l
If count is 0, the subagent skipped screenshots. Launch a follow-up subagent to add screenshots and visual review.
- SPOT-CHECK one screenshot — Use the Read tool to open one screenshot from this feature. Evaluate against
references/e2e-verification.md criteria (layout, spacing, hierarchy, aesthetics, consistency).
- If quality is poor, launch a polish subagent to fix visual issues before moving on.
- If the subagent failed to complete, launch another subagent to fix and finish.
- Loop back IMMEDIATELY — pick the next incomplete feature and launch a new subagent RIGHT NOW. Do NOT stop, do NOT report to the user, do NOT wait for instructions. KEEP GOING until ALL features pass.
Periodic Standards Audit
When to run: Every 5 completed features AND at session end (before final commit).
This uses the same audit pattern as references/constitution-audit.md, but applied to the project's own standards documents. The audit catches issues that individual subagents missed — self-review has blind spots.
Audit process:
For EACH standards document (ux-standards.md, frontend-design.md, code-quality.md, gitignore-standards.md, session-handoff-standards.md), launch a verification subagent that:
- Reads the standards document
- Reads the code/files changed since the last audit (use
git diff --name-only HEAD~5 or similar)
- Checks each standard against the actual code
- Reports: COMPLIANT or VIOLATION with specific file and line
Collect all violations across subagents
If violations found:
- Group related violations into fix batches
- Launch a fix subagent for each batch
- Each fix subagent commits its changes
- Re-verify the fixed code
Log audit results in progress.txt
Subagent prompt template for standards audit:
You are auditing recently changed code against a project standards document.
## Standards Document
{paste the full content of the standards doc}
## Files to Audit
{list of files changed since last audit}
## Instructions
1. Read each file listed above
2. For EACH standard in the document, check if the code complies
3. Report findings as:
- COMPLIANT: {standard} — {brief evidence}
- VIOLATION: {standard} — {file}:{line} — {what's wrong} — {fix needed}
4. Be thorough — check every standard, don't skip "obvious" ones
Decision Making Guidelines
Since the human may be asleep, follow these rules for autonomous decisions:
| Situation |
Decision |
| Ambiguous spec |
Choose the simplest reasonable interpretation |
| Multiple implementation approaches |
Pick the one matching existing patterns |
| Test is flaky |
Add proper waits/retries, don't skip the test |
| Feature seems too large |
Break into sub-tasks within the subagent |
| Dependency conflict |
Use the version compatible with existing packages |
| Build error |
Read the error, fix it, rebuild |
| Port conflict |
Kill the conflicting process and restart |
| Database issue |
Reset/reseed the database |
| Feature blocked by another |
Skip to next feature, come back later |
| Unclear UI design |
Follow references/frontend-design.md |
| UI looks generic/plain |
Add visual polish per references/ux-standards.md |
Session End
Only end the session when:
- ALL features have
"passes": true, OR
- A truly unrecoverable error occurs (hardware failure, missing credentials, etc.)
Before ending:
- Run final standards audit (see Periodic Standards Audit above) — include
session-handoff-standards.md
- Run all unit tests
- Run E2E tests only for features completed in previous sessions (regression check)
- Verify codebase meets
references/session-handoff-standards.md
- Commit any remaining changes
Critical Rules
Standards Enforcement
- All quality standards live in
references/ docs — subagents MUST read them
- Standards are verified both during implementation (by subagent) AND periodically (by audit)
- Audit violations MUST be fixed before session ends
Autonomous Operation (NON-NEGOTIABLE)
- NEVER stop to ask the human a question
- NEVER wait for human approval
- NEVER stop to "report progress" or "check in" — the user can see commits in git log
- NEVER output a summary and wait — immediately launch the next subagent
- After each subagent completes: verify → launch next subagent. That's it. No pausing.
- Make reasonable decisions based on existing patterns
- If blocked, try alternative approaches before giving up
- Keep working until ALL features are complete
- The continue workflow is a LOOP, not a single step. You are the loop controller.
Reference Files
All standards, templates, and detailed processes:
references/code-quality.md — Code organization, testability, and unit testing standards
references/ux-standards.md — UX quality standards and checklist
references/frontend-design.md — Design principles from /frontend-design skill
references/e2e-verification.md — E2E screenshot criteria, Playwright config, naming conventions, troubleshooting
references/gitignore-standards.md — Gitignore patterns and review process
references/session-handoff-standards.md — Clean codebase, git state, progress tracking
references/feature-list-format.md — Feature list structure, critical rules, priority order
references/init-script-template.md — init.sh template
references/continue-workflow.md — Full continue workflow details
references/constitution-audit.md — Systematic audit workflow for compliance/alignment scopes
1---2name: iterative-web-dev3description: Manage long-running AI agent development projects with incremental progress, scoped features, and E2E verification. Use this skill when working on multi-session projects, implementing features incrementally, running E2E tests with screenshots, initializing project scopes, or continuing work from previous sessions. Triggers on phrases like "continue working", "pick up where I left off", "next feature", "run E2E tests", "verify with screenshots", "initialize scope", "switch scope", "feature list", "incremental progress", or any multi-session development workflow.4---56# Iterative Web Development Workflow78This skill provides a complete workflow for AI agents working on long-running development projects across multiple sessions. It ensures **incremental, reliable progress** with proper handoffs between sessions.910## Core Principles11121. **Incremental progress** — Work on ONE feature at a time. Finish, test, and commit before moving on.132. **Feature list is sacred** — `feature_list.json` is the single source of truth. See `references/feature-list-format.md` for rules.143. **Git discipline** — Commit after every completed feature. Never leave uncommitted work.154. **Clean handoffs** — Every session ends meeting `references/session-handoff-standards.md`.165. **Test before build** — Verify existing features work before implementing new ones.176. **Autonomous execution** — Make all decisions yourself. Never stop to ask the human. The human may be asleep.187. **Subagent per feature** — Each feature is implemented in its own subagent for isolation and parallelism safety.198. **Refactor and unit test** — Actively extract logic into testable modules. See `references/code-quality.md`.209. **Visual quality is non-negotiable** — Every feature MUST be verified via screenshots. See `references/e2e-verification.md`.2110. **Design with intention** — Follow `references/frontend-design.md`: bold aesthetic, no generic AI aesthetics.2211. **Standards are auditable** — Quality standards live in reference docs and are systematically verified, not just aspirational checklists.2324## Standards Documents2526All verifiable quality standards are extracted into reference docs. These are used both as guidance during implementation and as audit targets for systematic verification.2728| Document | What it covers |29|----------|---------------|30| `references/ux-standards.md` | Loading/empty/error states, responsive design, accessibility, forms, tables, navigation |31| `references/frontend-design.md` | Typography, color, spatial composition, micro-interactions, anti-patterns |32| `references/code-quality.md` | File organization, testable architecture, unit testing, no duplication |33| `references/gitignore-standards.md` | Files that must never be committed |34| `references/e2e-verification.md` | Screenshot rules, visual review criteria, Playwright config, naming conventions |35| `references/feature-list-format.md` | Feature list structure, critical rules, priority order |36| `references/session-handoff-standards.md` | Clean codebase, git state, progress tracking — verified at session end |3738## When to Use Each Workflow3940| Workflow | Use When |41|----------|----------|42| **init-scope** | Starting a new scope, switching scopes, or setting up project structure |43| **continue** | Every session after init — picking up work, implementing ALL remaining features, and verifying each with E2E screenshot review |4445---4647## Workflow: Initialize Scope4849Use this to create a new development scope or switch between existing scopes.5051### Concepts5253- **Scope**: A focused set of features (e.g., "auth", "video-editor", "phase-2")54- **Active Scope**: Currently active scope stored in `.active-scope`55- **Scope Files**: `specs/{scope}/spec.md` and `specs/{scope}/feature_list.json`5657### Directory Structure5859```60project-root/61├── specs/62│ ├── auth/63│ │ ├── spec.md64│ │ └── feature_list.json65│ └── video-editor/66│ ├── spec.md67│ └── feature_list.json68├── .active-scope69├── spec.md # Symlink to active scope70├── feature_list.json # Symlink to active scope71├── progress.txt72└── init.sh73```7475### Steps76771. **Check current state**78 ```bash79 ls -la specs/ 2>/dev/null || echo "No scopes yet"80 cat .active-scope 2>/dev/null || echo "No active scope"81 ```82832. **Create new scope** (if needed)84 ```bash85 mkdir -p specs/auth86 # Create specs/auth/spec.md with specification87 ```88893. **Switch to scope**90 ```bash91 echo "auth" > .active-scope92 ln -sf specs/auth/spec.md spec.md93 ln -sf specs/auth/feature_list.json feature_list.json94 ```95964. **Create feature list** — choose the right method:9798 **If scope references a constitution / standards document** (e.g., "align with AGENTS.md", "refactor to follow standards"):99 Use the **Constitution Audit Workflow** from `references/constitution-audit.md`. This is a multi-subagent process:100 - Split the reference document into sections (~200 lines each)101 - Launch parallel subagents to extract EVERY requirement from each section (read actual text, not summaries)102 - Launch parallel subagents to verify each requirement against the actual codebase103 - Generate features ONLY from verified violations104 - This is NON-NEGOTIABLE for compliance scopes — ad-hoc auditing misses requirements105106 **If scope is new feature development** (e.g., "build a PIM system", "add auth"):107 Use the standard process from `references/feature-list-format.md`1081095. **Create/update init.sh** — see `references/init-script-template.md`1101116. **Commit and update progress log**112113---114115## Workflow: Continue Session (Autonomous Feature Loop)116117This is the main workflow. It runs ALL remaining features to completion without stopping.118119**⚠️ CRITICAL NON-STOP RULE (NON-NEGOTIABLE) ⚠️**120121**You MUST keep looping until EVERY feature in `feature_list.json` has `"passes": true`. Do NOT stop after one feature. Do NOT stop after two features. Do NOT stop to report progress to the user. Do NOT ask the human what to do next. The human may be asleep.**122123**After EACH subagent completes, you MUST immediately launch the NEXT subagent for the next incomplete feature. The ONLY acceptable reasons to stop are:**1241. **ALL features have `"passes": true`**1252. **A truly unrecoverable error** (hardware failure, missing credentials that cannot be worked around)126127**Stopping to "report back" or "check in" with the user is a VIOLATION of this workflow. The user explicitly chose autonomous execution. KEEP GOING.**128129### Session Startup Sequence1301311. **Get bearings**132 ```bash133 pwd134 cat progress.txt135 cat feature_list.json136 git log --oneline -20137 ```1381392. **Start environment**140 ```bash141 bash init.sh142 ```1431443. **Verify existing features** — Run all unit tests (fast) and only the E2E tests for features completed in previous sessions (not this session's new work). Skip E2E tests for features not yet implemented.145146### Autonomous Feature Loop147148After startup, enter the **feature loop**. This loop runs until ALL features pass:149150```151features_completed_this_session = 0152153WHILE there are features with "passes": false in feature_list.json:154 1. Read feature_list.json to find next incomplete feature (highest priority first)155 2. Launch a SUBAGENT to implement, test, verify screenshots, and commit156 3. After subagent completes, VERIFY screenshots and quality (see below)157 4. features_completed_this_session++158 5. If features_completed_this_session % 5 == 0: run STANDARDS AUDIT (see below)159 6. CONTINUE to next feature — do NOT stop160END WHILE161162Run FINAL STANDARDS AUDIT before ending session163```164165### Launching Feature Subagents (Claude Code)166167For each feature, use the **Agent tool** to launch a subagent. This keeps each feature's work isolated and prevents context window overflow.168169**Subagent prompt template:**170171```172You are implementing a feature for a web application. Work autonomously — do NOT ask questions, make your best judgment on all decisions.173174## Project Context175- Working directory: {pwd}176- Active scope: {scope from .active-scope}177178## Feature to Implement179- ID: {id}180- Description: {description}181- Category: {category}182- Priority: {priority}183- Test Steps:184{steps as bullet list}185186## Standards Documents187Read these reference docs and follow them during implementation:188- references/code-quality.md — Code organization, testability, unit testing rules189- references/ux-standards.md — UX quality requirements (loading/empty/error states, responsive, accessibility)190- references/frontend-design.md — Visual design principles (typography, color, composition)191- references/gitignore-standards.md — Files that must never be committed192- references/e2e-verification.md — Screenshot and E2E testing rules193194## Instructions195196### Phase 1: Implement1971. Read the relevant source files to understand the current codebase1982. Read the spec.md file for full project context1993. Read the standards documents listed above2004. Implement the feature following existing code patterns and the standards2015. Make sure the implementation is complete and production-quality202203### Phase 2: Refactor & Unit Test204Follow references/code-quality.md:2056. Extract pure functions out of UI components and handlers2067. Move business logic into testable utility/service modules2078. Eliminate duplication — reuse existing helpers or extract new shared ones2089. Write unit tests for all extracted logic. Run them until green.209210### Phase 3: E2E Test & Visual Verification211Follow references/e2e-verification.md:21210. Write E2E tests with screenshots at key user journey points21311. Run the feature's E2E tests — fix until green21412. MANDATORY: Use the Read tool to visually review EVERY screenshot215 Evaluate against the criteria in references/e2e-verification.md.216 Fix and re-run until all pass.217218### Phase 4: Gitignore Review219Follow references/gitignore-standards.md:22013. Run `git status --short` and check every file against gitignore patterns22114. Add any missing patterns to `.gitignore`, remove from tracking if needed222223### Phase 5: Commit22415. Update feature_list.json — change "passes": false to "passes": true22516. Update progress.txt with what was done and current feature pass count22617. Commit all changes:227 git add -A && git commit -m "feat: [description] — Implemented feature #[id]: [description]"228229## Key Rules230- Follow existing code patterns and the standards documents231- Keep changes focused on this feature only232- Do not break other features233- Make all decisions yourself, never ask for human input234- EVERY test must take screenshots — no exceptions235- EVERY screenshot must be visually reviewed — no exceptions236- BEFORE committing, review ALL files for .gitignore candidates237```238239**How to launch the subagent:**240241Use the Agent tool with `subagent_type: "general-purpose"`. Example:242243```244Agent tool call:245 description: "Implement feature #3"246 prompt: [filled template above]247```248249### After Each Subagent Completes250251The subagent handles implementation, testing, screenshot verification, and committing. The parent agent MUST verify:2522531. **Confirm commit** — `git log --oneline -1`2542. **Confirm feature_list.json** — feature has `"passes": true`2553. **VERIFY SCREENSHOTS EXIST** for this feature:256 ```bash257 ls e2e/screenshots/{scope}-feature-{id}-*.png 2>/dev/null | wc -l258 ```259 If count is 0, the subagent skipped screenshots. Launch a follow-up subagent to add screenshots and visual review.2604. **SPOT-CHECK one screenshot** — Use the Read tool to open one screenshot from this feature. Evaluate against `references/e2e-verification.md` criteria (layout, spacing, hierarchy, aesthetics, consistency).2615. If quality is poor, launch a **polish subagent** to fix visual issues before moving on.2626. If the subagent failed to complete, launch another subagent to fix and finish.2637. **Loop back IMMEDIATELY** — pick the next incomplete feature and launch a new subagent RIGHT NOW. Do NOT stop, do NOT report to the user, do NOT wait for instructions. KEEP GOING until ALL features pass.264265### Periodic Standards Audit266267**When to run:** Every 5 completed features AND at session end (before final commit).268269This uses the same audit pattern as `references/constitution-audit.md`, but applied to the project's own standards documents. The audit catches issues that individual subagents missed — self-review has blind spots.270271**Audit process:**2722731. For EACH standards document (`ux-standards.md`, `frontend-design.md`, `code-quality.md`, `gitignore-standards.md`, `session-handoff-standards.md`), launch a **verification subagent** that:274 - Reads the standards document275 - Reads the code/files changed since the last audit (use `git diff --name-only HEAD~5` or similar)276 - Checks each standard against the actual code277 - Reports: COMPLIANT or VIOLATION with specific file and line2782792. Collect all violations across subagents2802813. If violations found:282 - Group related violations into fix batches283 - Launch a **fix subagent** for each batch284 - Each fix subagent commits its changes285 - Re-verify the fixed code2862874. Log audit results in `progress.txt`288289**Subagent prompt template for standards audit:**290291```292You are auditing recently changed code against a project standards document.293294## Standards Document295{paste the full content of the standards doc}296297## Files to Audit298{list of files changed since last audit}299300## Instructions3011. Read each file listed above3022. For EACH standard in the document, check if the code complies3033. Report findings as:304 - COMPLIANT: {standard} — {brief evidence}305 - VIOLATION: {standard} — {file}:{line} — {what's wrong} — {fix needed}3064. Be thorough — check every standard, don't skip "obvious" ones307```308309### Decision Making Guidelines310311Since the human may be asleep, follow these rules for autonomous decisions:312313| Situation | Decision |314|-----------|----------|315| Ambiguous spec | Choose the simplest reasonable interpretation |316| Multiple implementation approaches | Pick the one matching existing patterns |317| Test is flaky | Add proper waits/retries, don't skip the test |318| Feature seems too large | Break into sub-tasks within the subagent |319| Dependency conflict | Use the version compatible with existing packages |320| Build error | Read the error, fix it, rebuild |321| Port conflict | Kill the conflicting process and restart |322| Database issue | Reset/reseed the database |323| Feature blocked by another | Skip to next feature, come back later |324| Unclear UI design | Follow references/frontend-design.md |325| UI looks generic/plain | Add visual polish per references/ux-standards.md |326327### Session End328329Only end the session when:330- **ALL features have `"passes": true`**, OR331- A truly unrecoverable error occurs (hardware failure, missing credentials, etc.)332333Before ending:3341. Run **final standards audit** (see Periodic Standards Audit above) — include `session-handoff-standards.md`3352. Run all unit tests3363. Run E2E tests only for features completed in previous sessions (regression check)3374. Verify codebase meets `references/session-handoff-standards.md`3385. Commit any remaining changes339340---341342## Critical Rules343344### Standards Enforcement345- All quality standards live in `references/` docs — subagents MUST read them346- Standards are verified both during implementation (by subagent) AND periodically (by audit)347- Audit violations MUST be fixed before session ends348349### Autonomous Operation (NON-NEGOTIABLE)350- NEVER stop to ask the human a question351- NEVER wait for human approval352- NEVER stop to "report progress" or "check in" — the user can see commits in git log353- NEVER output a summary and wait — immediately launch the next subagent354- After each subagent completes: verify → launch next subagent. That's it. No pausing.355- Make reasonable decisions based on existing patterns356- If blocked, try alternative approaches before giving up357- Keep working until ALL features are complete358- The continue workflow is a LOOP, not a single step. You are the loop controller.359360---361362## Reference Files363364All standards, templates, and detailed processes:365- `references/code-quality.md` — Code organization, testability, and unit testing standards366- `references/ux-standards.md` — UX quality standards and checklist367- `references/frontend-design.md` — Design principles from /frontend-design skill368- `references/e2e-verification.md` — E2E screenshot criteria, Playwright config, naming conventions, troubleshooting369- `references/gitignore-standards.md` — Gitignore patterns and review process370- `references/session-handoff-standards.md` — Clean codebase, git state, progress tracking371- `references/feature-list-format.md` — Feature list structure, critical rules, priority order372- `references/init-script-template.md` — init.sh template373- `references/continue-workflow.md` — Full continue workflow details374- `references/constitution-audit.md` — Systematic audit workflow for compliance/alignment scopes