project-bootstrap-full
Create a complete project foundation with SOLID architecture, TDD protocols, comprehensive documentation suite, data logic wireframes, and project scaffold. Works for both greenfield (new) and brownfield (existing) projects. Based on amph-v2 and amph-v2-greenfield patterns. Must ask intelligent questions to understand full project requirements before scaffolding.
- License 许可
- MIT
- 最近更新
- 2026-09-22
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- project-bootstrap-full
- description
- Create a complete project foundation with SOLID architecture, TDD protocols, comprehensive documentation suite, data logic wireframes, and project scaffold. Works for both greenfield (new) and brownfield (existing) projects. Based on amph-v2 and amph-v2-greenfield patterns. Must ask intelligent questions to understand full project requirements before scaffolding.
03 SKILL.md 正文
Project Bootstrap Full
A comprehensive project bootstrapping skill that creates a complete engineering foundation with SOLID architecture, TDD protocols, comprehensive documentation suite, data logic wireframes, and project scaffold. Works for both greenfield (new) and brownfield (existing) projects. Based on the proven patterns from amph-v2 and amph-v2-greenfield.
Core Philosophy
This skill follows a strict Question-First approach:
- Understand completely before creating anything
- Ask intelligent questions to uncover hidden requirements
- Create proportional documentation based on project risk
- Build one vertical slice before expanding horizontally
- Maintain source-of-truth files that evolve with the project
- Enforce SOLID principles through architecture, not just code review
Workflow
Phase 0: Project Type Detection
Critical First Step: Determine if this is a greenfield (new) or brownfield (existing) project.
Greenfield Detection
- New repository or empty directory
- No existing codebase
- Starting from scratch
- Action: Proceed to Phase 1 with full greenfield workflow
Brownfield Detection
- Existing codebase with history
- Established patterns and conventions
- Multiple contributors or long development history
- Action: Proceed to Phase 1 with brownfield assessment first
Phase 1: Intelligent Discovery
Before creating any files, ask questions to understand:
Project Identity & Purpose
- Project name: What should the project be called?
- One-sentence summary: What outcome does this project create?
- Primary users: Who will use this system?
- Problem statement: What specific problem does this solve?
- Success criteria: How will you measure if this project succeeded?
- Non-goals: What is explicitly NOT in scope?
Technical Foundation
- Tech stack: What languages, frameworks, databases, and tools?
- Deployment target: Where will this run? (cloud, on-premise, mobile, desktop)
- Data sensitivity: What kind of data will it handle?
- Scalability needs: Expected user/load growth?
- Budget/hosting: Cost constraints or preferred providers?
Architecture & Design
- System boundaries: What are the main components/modules?
- Integration points: What external systems will it connect to?
- UI requirements: Web, mobile, CLI, or API-only?
- Real-time needs: Does it need live updates, notifications, or streaming?
- Architecture preference: Monolith, microservices, or modular monolith?
Development & Operations
- Team size: Solo developer or team?
- Development timeline: Urgent prototype or long-term production system?
- Testing strategy: Unit, integration, E2E, or all?
- CI/CD pipeline: What build/test/deploy tools?
- Monitoring needs: Logging, metrics, alerting requirements?
- Existing systems: Legacy code or greenfield project?
Business & Domain
- Business rules: What are the core business rules?
- Pricing model: If applicable, what's the pricing structure?
- Payment processing: What payment gateways are needed?
- Email/notification requirements: Transactional, marketing, etc.?
- Compliance/regulatory: GDPR, HIPAA, SOC2, PCI?
Brownfield-Specific Questions (If Existing Project)
- Project history: How old is the codebase? Major milestones?
- Code quality: Current test coverage? Technical debt level?
- Architecture patterns: Existing patterns to preserve?
- Team knowledge: Who knows what parts of the system?
- Business criticality: What's the cost of downtime?
- User base: How many active users? Impact of changes?
- Integration dependencies: External systems that can't be changed?
- Compliance constraints: Regulatory requirements that must be maintained?
Phase 2: Profile & Layout Selection
Based on answers, recommend:
- Profile:
prototype,standard, orproduction - Layout:
generic,web-app,api-service,library, ormonorepo - Architecture: Traditional, SOLID-layered, or microservices
- Testing strategy: Proportional to risk and team capability
- Mode:
greenfieldorbrownfield(determined in Phase 0)
Phase 2.5: Brownfield Assessment (If Existing Project)
Before scaffolding, perform a comprehensive codebase assessment:
Codebase Analysis
- Directory structure: Map existing folder layout
- Package.json / requirements.txt: Catalog all dependencies
- Configuration files: Identify existing configs (.eslintrc, tsconfig, etc.)
- Test setup: What testing framework exists? Coverage baseline?
- CI/CD pipeline: Existing automation and deployment
- Documentation: What docs already exist?
Code Quality Audit
- Test coverage: Run coverage, document baseline
- Linting: Run linter, count warnings/errors
- Type safety: TypeScript strictness level
- Dependencies: Outdated packages, security vulnerabilities
- Technical debt: Known pain points from team
Architecture Mapping
- Entry points: Where does the app start?
- Data flow: How does data move through the system?
- Integration points: External APIs, databases, services
- State management: How is state handled?
- Error handling: Existing error patterns
- Logging: Current logging approach
Documentation Gap Analysis
| Document | Status | Action |
|---|---|---|
| README.md | ✅ Exists / ❌ Missing | Update / Create |
| API docs | ✅ Exists / ❌ Missing | Update / Create |
| Architecture | ✅ Exists / ❌ Missing | Update / Create |
| Testing guide | ✅ Exists / ❌ Missing | Update / Create |
| Deployment | ✅ Exists / ❌ Missing | Update / Create |
| Security | ✅ Exists / ❌ Missing | Update / Create |
Migration Strategy
- Preserve: What patterns and conventions to keep
- Improve: What areas need gradual improvement
- Replace: What needs complete overhaul
- Timeline: Phased approach to avoid disruption
Phase 2.7: Docstring Standard Lock-in
Every project this skill scaffolds must ship with a docstring/JSDoc standard on day one. This is non-negotiable — it is the single highest-leverage documentation investment and the primary contract that lets AI coding agents work safely in the codebase.
During this phase, before writing any code:
- Drop
references/DOCSTRING_STANDARD.md.tpl→DOCSTRING_STANDARD.mdat the project root. Fill in language(s) and team choices. Do not skip the file. - Detect the language stack from the user's answers in Phase 1:
- Python → enable Google style,
pydocstyle+ruff D+interrogate --fail-under=80, pre-commit hook, CI job. - TypeScript → enable TSDoc,
eslint-plugin-jsdoc, pre-commit hook, CI job. - Both → enable both toolchains; the standard supports this.
- Neither → ask the user to pick a primary; the standard is the project's choice, not the scaffolder's.
- Python → enable Google style,
- Update
AGENTS.mdandCOMBINED_INSTRUCTIONS.mdso the "Code Style" and "CI Requirements" sections referenceDOCSTRING_STANDARD.mdand require complete docstrings on every public symbol. - Update
OPERATING_GUIDELINES.mdso the "Quality Gate" runs the docstring linter and the "Adding a Feature" recipe includes a docstring step. - Update
docs/CICD.mdso the pipeline has a "Documentation Quality Stage" that blocks merges wheninterrogate --fail-under=80(Python) oreslint jsdoc/*(TypeScript) fails. - Brownfield projects: if the existing codebase is below the docstring coverage threshold, the standard is still adopted, but a documented debt-reduction plan is added to
docs/SPRINTS.md(e.g. "raise coverage from 45% to 80% over the next 3 sprints, file-by-file, no opportunistic blanketnoqa"). - AI-agent policy: the standard must state explicitly that any AI coding agent (Mavis, Claude Code, Copilot, Cursor) writes the docstring at the same time it writes the function body, and that docstring deletion or shortening without an explicit reviewer instruction is a PR-blocking offense.
The standard is created from the template, not paraphrased. This keeps the surface consistent across all projects bootstrapped from this skill.
Phase 2.8: Design System Lock-in
Every project this skill scaffolds must ship with a token-backed design system on day one. Without one, every contributor (human or AI) invents values ad hoc and the product drifts toward the default AI aesthetic: blue gradients, glassmorphism, generic illustrations, system fonts, and emoji-laden buttons.
During this phase, after the docstring standard is in place but before any UI is scaffolded:
- Drop
references/DESIGN_SYSTEM.md.tpl→DESIGN_SYSTEM.mdat the project root. Keep the anchor decisions (Phosphor / Space Grotesk + JetBrains Mono / off-white surface / orange accent) unless the user explicitly overrides them in writing. - Generate the
tokens/directory using Style Dictionary. Wire the build to compile to CSS variables, Tailwind config, and any other target the project's stack needs. - Add the stylelint config (
.stylelintrc.json) at the project root. It must enforce: token-strict-value, banned properties (backdrop-filter, off-scalebox-shadow, off-palettecolor), banned functions (linear-gradient,radial-gradient,conic-gradientin component code), and the icon-set import whitelist. - Add a
no-emoji-in-uirule — the simplest enforcement iseslint-plugin-jsx-a11yplus a custom rule that rejects emoji code points in JSX. For Tailwind-only projects, the convention is: emoji in JSX is a// eslint-disable-next-linewith a justification comment and team review. - Update
AGENTS.mdandCOMBINED_INSTRUCTIONS.mdso the "Design System" section points toDESIGN_SYSTEM.mdinstead of the 4-line bullet, and the "Don't Do" list bans off-token values. - Update
OPERATING_GUIDELINES.mdso the "Quality Gate" runs the stylelint + grep + icon-import checks. - Update
docs/CICD.mdso the pipeline has a "Design System Stage" (3.6) that blocks merges on off-token violations. - Brownfield projects: adopt the tokens, do not enable the linter on day one. Migrate the top 20% most-used components first, run the linter as
warnfor the first month, thenerroronce token coverage crosses 70%. Track token coverage (% of source files using only token values) as a metric. - AI-agent policy: the standard must state that any AI coding agent imports from
tokens/, never invents a hex/spacing/font/icon value, and refuses prompts like "add a gradient for emphasis." The agent files an RFC for a new token instead of bypassing the rule.
The standard is created from the template, not paraphrased. The tokens are the wire format between design intent and component code; off-token values are a bug.
Phase 2.9: Voice & Writing Standard Lock-in
Every project this skill scaffolds must ship with a lint-enforced voice guide on day one. AI-generated copy is a recognizable tell — vague claims, hedge words, "leverage", "robust", "seamless", apologetic enthusiasm. None of that builds trust, and most of it actively erodes it.
During this phase, after the design system is in place but before any copy is written:
- Drop
references/VOICE_GUIDE.md.tpl→VOICE_GUIDE.mdat the project root. Keep the audience anchor (Filipino VA users, direct, plain-spoken) unless the user explicitly overrides it in writing. - Install Vale at the project root. Add
.vale.inipointing at.vale/styles/amph/and the vocab file.vale/config/vocabularies/accept.txt(which lists project-specific terms like "PayMongo", "GCash", "Maya"). - Add the project's
amph/Vale pack (BannedPhrases, BannedPunctuation, HedgeWords) at.vale/styles/amph/. The list is seeded from §2.1 of the standard; the team can extend it via RFC. - Add the custom ESLint rule (
eslint-plugin-no-ai-slop) and itsbanned-phrases.jsonlist. Wire it into.eslintrc.cjsaserroroversrc/**/*.{ts,tsx}. - Update
AGENTS.mdandCOMBINED_INSTRUCTIONS.mdso the "Voice" section points toVOICE_GUIDE.mdinstead of the 4-line bullet, and the "Don't Do" list bans the same phrases the linter bans. - Update
OPERATING_GUIDELINES.mdso the "Quality Gate" runs Vale + the ESLint rule. - Update
docs/CICD.mdso the pipeline has a "Voice / Writing Lint Stage" (3.7) that blocks merges on banned-phrase hits. - Brownfield projects: adopt the standard, run Vale in
suggestionlevel for the first month (it still reports issues but doesn't block CI). Clean the top 20% most-visible surfaces first (landing page hero, top 5 empty states, top 10 error messages). Track a "slop score" — Vale errors per 1000 words — and aim to halve it per quarter. - AI-agent policy: the standard must state that any AI coding agent reads
VOICE_GUIDE.mdbefore writing the first string (not "be aware of it" — read it), produces lint-clean copy on the first try, and never paraphrases a banned phrase to dodge the linter. The agent flags suspected false positives with a justification comment, not a silent bypass.
The voice is a product surface, not a style preference. Vale and ESLint are the type system for English. Drift is a bug.
Phase 3: Scaffold & Documentation
Create comprehensive project structure based on project type:
Greenfield Mode (New Project)
Create ALL new files from scratch:
Core Documentation (Based on amph-v2-greenfield Patterns)
README.md- Project overview with badges, quickstart, and architecture diagramAGENTS.md- AI/agent guidelines for code generation and assistanceCHANGELOG.md- Version history following Keep a Changelog formatCONTRIBUTING.md- Contribution guidelines for team membersBOOTSTRAP.md- Session bootstrap prompt with project status, sprint roadmap, quality gate, git rules, and next stepsOPERATING_GUIDELINES.md- Living document with git discipline, TDD protocol, quality gate, architecture rules, naming conventions, and environment variablesSESSION-HANDOVER.md- Session handoff with project status, what shipped, architecture patterns, sprint status, open PRs, git rules, quality gate, and daily logSESSION-TDD-SOLID-AUDIT.md- TDD+SOLID audit with tiered issues (Tier A-D), progress tracking, and resolution patternsNEXT-SESSION-PROMPT.md- Next-session prompt with state, rules, patterns, and disclaimersCODEOWNERS- GitHub CODEOWNERS file for code review assignmentsLICENSE- Project license (MIT, Apache 2.0, etc.)CLAUDE.md- Architecture overview, layer descriptions, and design systemSESSION-LOG.md- Session log with detailed work history, decisions made, and progress trackingSPRINTS.md- Sprint planning with backlog, velocity tracking, and milestone planningCOMBINED_INSTRUCTIONS.md- Essential instructions combined from AGENTS.md and CLAUDE.mdDOCSTRING_STANDARD.md- Docstring/JSDoc standard (fromreferences/DOCSTRING_STANDARD.md.tpl). Mandatory for every project this skill scaffolds. Defines style, linting toolchain, coverage threshold, and the AI-agent policy that docstrings ship with the function body in the same commit.DESIGN_SYSTEM.md- Design system standard (fromreferences/DESIGN_SYSTEM.md.tpl). Mandatory for every project this skill scaffolds. Defines the token set (color, type, spacing, radius, shadow, motion, density, z-index), the AI-slop visual ban list (decorative gradients, glassmorphism, off-token values, non-Phosphor icons, emoji in UI), and the linting + CI enforcement.VOICE_GUIDE.md- Voice / writing standard (fromreferences/VOICE_GUIDE.md.tpl). Mandatory for every project this skill scaffolds. Defines the banned AI-slop phrase list (~80 entries), punctuation rules (em-dash ban in body copy), sentence-level rules (length, active voice, hedge words, adjective budget), microcopy rules (buttons ≤ 3 words, error messages, empty states), and the Vale + ESLint enforcement.
Project Structure
Create complete directory structure from scratch (see Phase 4)
Brownfield Mode (Existing Project)
DO NOT overwrite existing files. Instead:
Documentation Strategy
- Create missing docs only: Based on gap analysis from Phase 2.5
- Update existing docs: Add sections that are missing
- Preserve existing patterns: Match naming conventions and style
- Incremental improvement: Don't break existing workflows
Core Documentation (Add if Missing)
| Document | Brownfield Action |
|---|---|
README.md |
Update with missing sections, don't rewrite |
AGENTS.md |
Create if missing, or update with current patterns |
CHANGELOG.md |
Create from git history if missing |
CONTRIBUTING.md |
Create if missing, or update with current practices |
BOOTSTRAP.md |
Create from existing project state |
OPERATING_GUIDELINES.md |
Create based on observed patterns |
SESSION-HANDOVER.md |
Create as new session record |
SESSION-TDD-SOLID-AUDIT.md |
Create based on code quality audit |
NEXT-SESSION-PROMPT.md |
Create based on current priorities |
CODEOWNERS |
Create if missing, or update |
LICENSE |
Preserve existing license |
CLAUDE.md |
Create if missing, or update with architecture |
SESSION-LOG.md |
Create as new session record |
SPRINTS.md |
Create based on current development state |
COMBINED_INSTRUCTIONS.md |
Create from existing AGENTS.md + CLAUDE.md |
DOCSTRING_STANDARD.md |
Adopt from references/DOCSTRING_STANDARD.md.tpl; if existing coverage is below the threshold, add a debt-reduction plan to docs/SPRINTS.md (raise coverage over multiple sprints, no blanket noqa). |
DESIGN_SYSTEM.md |
Adopt from references/DESIGN_SYSTEM.md.tpl; build the tokens/ directory; migrate the top 20% most-used components to token values first; run the stylelint as warn for the first month, then error once token coverage crosses 70%. |
VOICE_GUIDE.md |
Adopt from references/VOICE_GUIDE.md.tpl; run Vale in suggestion level for the first month (still reports, doesn't block); clean the top 20% most-visible surfaces first (hero, top 5 empty states, top 10 error messages). |
Documentation Integration Rules
- Don't break existing workflows: Preserve what works
- Match existing style: Follow established conventions
- Add value, not noise: Only create docs that provide clear benefit
- Incremental updates: Update docs as code changes
- Preserve history: Don't delete existing documentation
Technical Documentation
docs/PRD.md- Product Requirements Documentdocs/MVP.md- Minimum Viable Product specificationdocs/ARCHITECTURE.md- System architecture with diagramsdocs/BUILD_SPEC.md- Build specifications and configurationdocs/ROADMAP.md- Feature roadmap and milestonesdocs/TESTING.md- Testing strategy and protocolsdocs/DECISIONS.md- Architecture Decision Records (ADRs)docs/BUILD_LOG.md- Build and deployment historydocs/ERROR_LOG.md- Known issues and troubleshootingdocs/API_SPECIFICATION.md- API design, endpoints, rate limitingdocs/SECURITY.md- Security policies, OWASP requirements, compliancedocs/CICD.md- CI/CD pipeline configuration and deploymentdocs/DATABASE_SCHEMA.md- Database design, migrations, relationshipsdocs/USER_STORIES.md- User stories, acceptance criteria, backlog
Brownfield Technical Documentation (Add if Missing)
| Document | Brownfield Action |
|---|---|
docs/PRD.md |
Create based on existing features, not aspirational |
docs/MVP.md |
Create to document current state as baseline |
docs/ARCHITECTURE.md |
Create from actual codebase structure |
docs/BUILD_SPEC.md |
Create from existing build configs |
docs/ROADMAP.md |
Create based on current priorities and debt |
docs/TESTING.md |
Create from existing test setup + gaps |
docs/DECISIONS.md |
Create from git history and ADRs |
docs/BUILD_LOG.md |
Create from CI/CD history |
docs/ERROR_LOG.md |
Create from known issues |
docs/API_SPECIFICATION.md |
Create from existing endpoints |
docs/SECURITY.md |
Create based on existing security measures |
docs/CICD.md |
Create from existing pipeline configs |
docs/DATABASE_SCHEMA.md |
Create from existing schema |
docs/USER_STORIES.md |
Create from existing features |
TDD & SOLID Protocols
docs/TDD_PROTOCOL.md- Test-Driven Development workflowdocs/SOLID_GUIDELINES.md- SOLID principles implementation guidedocs/CODE_REVIEW.md- Code review checklist and standardsdocs/VOICE_GUIDE.md- Voice and tone guidelines for content
Brownfield TDD Documentation (Add if Missing)
| Document | Brownfield Action |
|---|---|
docs/TDD_PROTOCOL.md |
Create from existing test patterns + gaps |
docs/SOLID_GUIDELINES.md |
Create based on actual architecture |
docs/CODE_REVIEW.md |
Create from existing review practices |
docs/VOICE_GUIDE.md |
Create from existing content patterns |
Data Logic Wireframes
docs/DATA_FLOW.md- Data flow diagrams and state managementdocs/API_SPECIFICATION.md- API contracts and endpointsdocs/DATABASE_SCHEMA.md- Database design and relationshipsdocs/INTEGRATION_MAP.md- External system integrations
Brownfield Data Logic Documentation (Add if Missing)
| Document | Brownfield Action |
|---|---|
docs/DATA_FLOW.md |
Create from actual data flow |
docs/API_SPECIFICATION.md |
Create from existing API patterns |
docs/DATABASE_SCHEMA.md |
Create from existing database |
docs/INTEGRATION_MAP.md |
Create from existing integrations |
UI/UX Documentation
docs/UI_WIREFRAMES.md- User interface wireframes and flowsdocs/DESIGN_SYSTEM.md- Design tokens, components, and patternsdocs/USER_JOURNEYS.md- User experience flows and personasdocs/UI_COMPONENTS.md- UI component library and usage guidelinesdocs/ACCESSIBILITY.md- WCAG compliance and accessibility guidelinesdocs/RESPONSIVE_DESIGN.md- Mobile, tablet, desktop breakpointsdocs/ANIMATION_GUIDE.md- Motion design and micro-interactionsdocs/UX_WRITING.md- Microcopy, error messages, and content designdocs/WIREFRAME_DIAGRAMS.md- ASCII/text-based wireframe diagrams for key screens
Brownfield UI/UX Documentation (Add if Missing)
| Document | Brownfield Action |
|---|---|
docs/UI_WIREFRAMES.md |
Create from actual UI patterns |
docs/DESIGN_SYSTEM.md |
Create from existing design tokens |
docs/USER_JOURNEYS.md |
Create from actual user flows |
docs/UI_COMPONENTS.md |
Create from existing components |
docs/ACCESSIBILITY.md |
Create from existing a11y measures |
docs/RESPONSIVE_DESIGN.md |
Create from existing breakpoints |
docs/ANIMATION_GUIDE.md |
Create from existing animations |
docs/UX_WRITING.md |
Create from existing content patterns |
docs/WIREFRAME_DIAGRAMS.md |
Create from actual UI |
Production Readiness (if production profile)
docs/SECURITY.md- Security policies, OWASP top 10, and compliancedocs/DEPLOYMENT.md- Deployment procedures and runbooksdocs/OBSERVABILITY.md- Logging, metrics, and alertingdocs/PERFORMANCE.md- Performance budgets and monitoringdocs/BACKUP_RECOVERY.md- Backup and disaster recovery plansdocs/RELEASE_PROCESS.md- Release management proceduresdocs/RATE_LIMITING.md- API rate limiting, throttling, and abuse preventiondocs/INCIDENT_RESPONSE.md- Security incident response procedures
Brownfield Production Readiness (Add if Missing)
| Document | Brownfield Action |
|---|---|
docs/SECURITY.md |
Create from existing security measures |
docs/DEPLOYMENT.md |
Create from existing deployment process |
docs/OBSERVABILITY.md |
Create from existing monitoring |
docs/PERFORMANCE.md |
Create from existing performance data |
docs/BACKUP_RECOVERY.md |
Create from existing backup process |
docs/RELEASE_PROCESS.md |
Create from existing release process |
docs/RATE_LIMITING.md |
Create from existing rate limiting |
docs/INCIDENT_RESPONSE.md |
Create from existing incident process |
Phase 4: Project Scaffold
Create actual project structure with:
Configuration Files
- Package manager configs (package.json, pnpm-lock.yaml)
- Linter and formatter configs (ESLint, Prettier)
- Type checking configs (TypeScript strict)
- Test framework configs (Vitest, Playwright)
- Environment templates (.env.example)
- CI/CD pipeline configs (GitHub Actions)
Source Structure (SOLID Architecture)
project/
├── src/
│ ├── domain/ # Pure business model
│ │ ├── entities/ # Business entities
│ │ ├── values/ # Value objects
│ │ ├── services/ # Domain services
│ │ └── simulator/ # Domain simulators
│ ├── ports/ # Interfaces only
│ │ ├── repositories/
│ │ ├── payment/
│ │ ├── email/
│ │ ├── security/
│ │ └── system/
│ ├── usecases/ # One class per use case
│ ├── infra/ # Adapters implementing ports
│ │ ├── repositories/
│ │ ├── payment/
│ │ ├── email/
│ │ ├── security/
│ │ └── simulator/
│ ├── app/ # Next.js App Router
│ │ ├── actions/
│ │ ├── api/
│ │ └── (dashboard)/
│ ├── composition/ # DI container
│ └── components/ # UI primitives
├── prisma/ # Database schema
├── content/ # Content files
├── tests/ # Test suites
├── docs/ # Documentation
├── scripts/ # Build and utility scripts
└── public/ # Static assets
Quality Gates
- Pre-commit hooks for formatting and linting
- CI/CD pipeline for automated testing and deployment
- Documentation generation and validation scripts
- Security scanning and dependency auditing
Phase 5: Validation & Handoff
Run validation checks:
- Documentation completeness
- Project structure integrity
- Test framework setup
- Configuration file validity
- Build system verification
- SOLID architecture compliance
- TDD protocol setup
- Docstring standard present —
DOCSTRING_STANDARD.mdexists at the project root and is referenced fromAGENTS.md,COMBINED_INSTRUCTIONS.md,OPERATING_GUIDELINES.md, anddocs/CICD.md. Missing = validation fail. - Docstring lint wired into CI —
docs/CICD.mdhas a Documentation Quality Stage that runs the docstring linter (pydocstyle/interrogate/eslint jsdoc/*) and gates merges. Missing = validation fail. - Docstring coverage threshold — for Python projects,
interrogate --fail-under=80is configured in CI; for TypeScript projects,eslint jsdoc/require-jsdocis set toerror. Either must be present and active. - Design system standard present —
DESIGN_SYSTEM.mdexists at the project root and is referenced fromAGENTS.md,COMBINED_INSTRUCTIONS.md,OPERATING_GUIDELINES.md, anddocs/CICD.md. Atokens/directory exists with at least the color, typography, and spacing token groups. Missing = validation fail. - Design system lint wired into CI —
docs/CICD.mdhas a Design System Stage (3.6) that runs stylelint + the hex/gradient/icon-import grep checks and gates merges. Missing = validation fail. - Voice / writing standard present —
VOICE_GUIDE.mdexists at the project root and is referenced fromAGENTS.md,COMBINED_INSTRUCTIONS.md,OPERATING_GUIDELINES.md, anddocs/CICD.md. A.vale.iniexists with theamph/style pack. Missing = validation fail. - Voice / writing lint wired into CI —
docs/CICD.mdhas a Voice / Writing Lint Stage (3.7) that runs Vale + theno-ai-slop/no-ai-slopESLint rule and gates merges. Missing = validation fail.
Provide handoff with:
- Next steps for implementation
- First vertical slice definition
- Acceptance criteria for initial feature
- Recommended development workflow
- Session handover documentation
Integration with Other Skills
This skill works best with:
- tdd-workflow: For implementing Test-Driven Development
- solid-code-design: For SOLID architecture principles
- loop-engineering: For bounded implementation cycles
- engineering-quality-gates: For quality verification
- code-review-and-quality: For code review standards
Output Contract
This skill delivers:
- Complete project documentation suite
- SOLID five-layer architecture
- TDD and SOLID protocol documents
- Data logic and UI wireframes
- Functional project scaffold
- Validation report
- Implementation roadmap
- Session handover documentation
- Docstring/JSDoc standard —
DOCSTRING_STANDARD.mdat the project root, wired intoAGENTS.md,COMBINED_INSTRUCTIONS.md,OPERATING_GUIDELINES.md, and the CI pipeline. AI coding agents are explicitly bound to write the docstring in the same change as the function body. Coverage threshold: 80% (Python) or 100% of public surface (TypeScript). A project scaffolded from this skill without this file is considered incomplete. - Design system standard —
DESIGN_SYSTEM.mdat the project root, with atokens/directory compiled via Style Dictionary. Wired intoAGENTS.md,COMBINED_INSTRUCTIONS.md,OPERATING_GUIDELINES.md, and the CI pipeline (Design System Stage 3.6). The stylelint config + the hex/gradient/icon-import grep checks block merges on off-token violations. AI coding agents are explicitly bound to import fromtokens/, never invent hex/spacing/font/icon values. - Voice / writing standard —
VOICE_GUIDE.mdat the project root, with a.vale.iniand theamph/style pack. Wired intoAGENTS.md,COMBINED_INSTRUCTIONS.md,OPERATING_GUIDELINES.md, and the CI pipeline (Voice / Writing Lint Stage 3.7). Vale + theno-ai-slop/no-ai-slopESLint rule block merges on banned-phrase hits in docs and JSX strings. AI coding agents are explicitly bound to read the guide and produce lint-clean copy on the first try.
Never create documentation without understanding the project first. Never skip intelligent questions. Never assume requirements. Never scaffold a project without DOCSTRING_STANDARD.md, DESIGN_SYSTEM.md, VOICE_GUIDE.md, and their matching CI gates.
04 同仓库更多 Skills
test-driven-development
Drive one observable software behavior at a time through a valid Test-Driven Development cycle: select the test, prove Red for the intended reason, implement the smallest Green change, and preserve the test as regression evidence. Use before adding production behavior, fixing defects, changing contracts, or safely characterizing legacy behavior. Also use when tests are brittle, over-mocked, skipped, weakened, or passing without proving the requirement.
suite-orchestrator
Route complex work across the complete Agent Skill Suite while enforcing content preservation, explicit scope, correct specialist timing, evidence-backed completion, and durable state. Use when a task involves coding, agent operations, repository bootstrapping, conversation compilation, artifact generation, expert review, persistent memory, or several of these together. Also use when the correct skill is unclear or work must pass through multiple specialist skills in a controlled sequence.
solid-design
Design, refactor, and review object-oriented or modular code with the SOLID principles while preserving behavior and avoiding needless abstraction. Use when defining responsibilities, extension seams, subtype contracts, consumer interfaces, dependency direction, modules, services, strategies, plugins, adapters, repositories, or architecture boundaries; also use when test friction, tangled dependencies, large classes, unsupported methods, framework leakage, or repeated variant branches signal a structural problem.
quality-gates
Verify engineering work against required behavioral, architectural, regression, build, security, compatibility, documentation, and diff-hygiene evidence before completion. Use after a code change, defect fix, refactor, migration, generated-code update, or implementation plan appears complete; also use for read-only code reviews and release-readiness checks. Return PASS or BLOCKED without implementing the remediation.
loop-engineering
Execute non-trivial software work through small, observable build-test-observe-adjust loops with explicit hypotheses, evidence, outcomes, and next actions. Use throughout feature implementation, debugging, refactoring, migrations, performance work, and complex verification where feedback must guide each subsequent step. Use when work is stalling, changes are growing too large, failures repeat, or an engineering ledger is required.
local-memory
Maintain fast, durable, curated local memory for AI agents on Android, Termux, Linux, macOS, Windows, or other lightweight environments. Use when an agent must remember stable preferences, project facts, decisions, procedures, failure resolutions, and task state across sessions; retrieve relevant memories before planning; resolve conflicting or stale memories; or provide explicit remember, search, pin, update, forget, status, and export controls without a cloud dependency.