AGENT SKILL

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:

  1. Understand completely before creating anything
  2. Ask intelligent questions to uncover hidden requirements
  3. Create proportional documentation based on project risk
  4. Build one vertical slice before expanding horizontally
  5. Maintain source-of-truth files that evolve with the project
  6. 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, or production
  • Layout: generic, web-app, api-service, library, or monorepo
  • Architecture: Traditional, SOLID-layered, or microservices
  • Testing strategy: Proportional to risk and team capability
  • Mode: greenfield or brownfield (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:

  1. Drop references/DOCSTRING_STANDARD.md.tpl → DOCSTRING_STANDARD.md at the project root. Fill in language(s) and team choices. Do not skip the file.
  2. 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.
  3. Update AGENTS.md and COMBINED_INSTRUCTIONS.md so the "Code Style" and "CI Requirements" sections reference DOCSTRING_STANDARD.md and require complete docstrings on every public symbol.
  4. Update OPERATING_GUIDELINES.md so the "Quality Gate" runs the docstring linter and the "Adding a Feature" recipe includes a docstring step.
  5. Update docs/CICD.md so the pipeline has a "Documentation Quality Stage" that blocks merges when interrogate --fail-under=80 (Python) or eslint jsdoc/* (TypeScript) fails.
  6. 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 blanket noqa").
  7. 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:

  1. Drop references/DESIGN_SYSTEM.md.tpl → DESIGN_SYSTEM.md at 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.
  2. 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.
  3. Add the stylelint config (.stylelintrc.json) at the project root. It must enforce: token-strict-value, banned properties (backdrop-filter, off-scale box-shadow, off-palette color), banned functions (linear-gradient, radial-gradient, conic-gradient in component code), and the icon-set import whitelist.
  4. Add a no-emoji-in-ui rule — the simplest enforcement is eslint-plugin-jsx-a11y plus 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-line with a justification comment and team review.
  5. Update AGENTS.md and COMBINED_INSTRUCTIONS.md so the "Design System" section points to DESIGN_SYSTEM.md instead of the 4-line bullet, and the "Don't Do" list bans off-token values.
  6. Update OPERATING_GUIDELINES.md so the "Quality Gate" runs the stylelint + grep + icon-import checks.
  7. Update docs/CICD.md so the pipeline has a "Design System Stage" (3.6) that blocks merges on off-token violations.
  8. 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 warn for the first month, then error once token coverage crosses 70%. Track token coverage (% of source files using only token values) as a metric.
  9. 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:

  1. Drop references/VOICE_GUIDE.md.tpl → VOICE_GUIDE.md at the project root. Keep the audience anchor (Filipino VA users, direct, plain-spoken) unless the user explicitly overrides it in writing.
  2. Install Vale at the project root. Add .vale.ini pointing at .vale/styles/amph/ and the vocab file .vale/config/vocabularies/accept.txt (which lists project-specific terms like "PayMongo", "GCash", "Maya").
  3. 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.
  4. Add the custom ESLint rule (eslint-plugin-no-ai-slop) and its banned-phrases.json list. Wire it into .eslintrc.cjs as error over src/**/*.{ts,tsx}.
  5. Update AGENTS.md and COMBINED_INSTRUCTIONS.md so the "Voice" section points to VOICE_GUIDE.md instead of the 4-line bullet, and the "Don't Do" list bans the same phrases the linter bans.
  6. Update OPERATING_GUIDELINES.md so the "Quality Gate" runs Vale + the ESLint rule.
  7. Update docs/CICD.md so the pipeline has a "Voice / Writing Lint Stage" (3.7) that blocks merges on banned-phrase hits.
  8. Brownfield projects: adopt the standard, run Vale in suggestion level 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.
  9. AI-agent policy: the standard must state that any AI coding agent reads VOICE_GUIDE.md before 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 diagram
  • AGENTS.md - AI/agent guidelines for code generation and assistance
  • CHANGELOG.md - Version history following Keep a Changelog format
  • CONTRIBUTING.md - Contribution guidelines for team members
  • BOOTSTRAP.md - Session bootstrap prompt with project status, sprint roadmap, quality gate, git rules, and next steps
  • OPERATING_GUIDELINES.md - Living document with git discipline, TDD protocol, quality gate, architecture rules, naming conventions, and environment variables
  • SESSION-HANDOVER.md - Session handoff with project status, what shipped, architecture patterns, sprint status, open PRs, git rules, quality gate, and daily log
  • SESSION-TDD-SOLID-AUDIT.md - TDD+SOLID audit with tiered issues (Tier A-D), progress tracking, and resolution patterns
  • NEXT-SESSION-PROMPT.md - Next-session prompt with state, rules, patterns, and disclaimers
  • CODEOWNERS - GitHub CODEOWNERS file for code review assignments
  • LICENSE - Project license (MIT, Apache 2.0, etc.)
  • CLAUDE.md - Architecture overview, layer descriptions, and design system
  • SESSION-LOG.md - Session log with detailed work history, decisions made, and progress tracking
  • SPRINTS.md - Sprint planning with backlog, velocity tracking, and milestone planning
  • COMBINED_INSTRUCTIONS.md - Essential instructions combined from AGENTS.md and CLAUDE.md
  • DOCSTRING_STANDARD.md - Docstring/JSDoc standard (from references/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 (from references/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 (from references/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

  1. Don't break existing workflows: Preserve what works
  2. Match existing style: Follow established conventions
  3. Add value, not noise: Only create docs that provide clear benefit
  4. Incremental updates: Update docs as code changes
  5. Preserve history: Don't delete existing documentation

Technical Documentation

  • docs/PRD.md - Product Requirements Document
  • docs/MVP.md - Minimum Viable Product specification
  • docs/ARCHITECTURE.md - System architecture with diagrams
  • docs/BUILD_SPEC.md - Build specifications and configuration
  • docs/ROADMAP.md - Feature roadmap and milestones
  • docs/TESTING.md - Testing strategy and protocols
  • docs/DECISIONS.md - Architecture Decision Records (ADRs)
  • docs/BUILD_LOG.md - Build and deployment history
  • docs/ERROR_LOG.md - Known issues and troubleshooting
  • docs/API_SPECIFICATION.md - API design, endpoints, rate limiting
  • docs/SECURITY.md - Security policies, OWASP requirements, compliance
  • docs/CICD.md - CI/CD pipeline configuration and deployment
  • docs/DATABASE_SCHEMA.md - Database design, migrations, relationships
  • docs/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 workflow
  • docs/SOLID_GUIDELINES.md - SOLID principles implementation guide
  • docs/CODE_REVIEW.md - Code review checklist and standards
  • docs/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 management
  • docs/API_SPECIFICATION.md - API contracts and endpoints
  • docs/DATABASE_SCHEMA.md - Database design and relationships
  • docs/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 flows
  • docs/DESIGN_SYSTEM.md - Design tokens, components, and patterns
  • docs/USER_JOURNEYS.md - User experience flows and personas
  • docs/UI_COMPONENTS.md - UI component library and usage guidelines
  • docs/ACCESSIBILITY.md - WCAG compliance and accessibility guidelines
  • docs/RESPONSIVE_DESIGN.md - Mobile, tablet, desktop breakpoints
  • docs/ANIMATION_GUIDE.md - Motion design and micro-interactions
  • docs/UX_WRITING.md - Microcopy, error messages, and content design
  • docs/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 compliance
  • docs/DEPLOYMENT.md - Deployment procedures and runbooks
  • docs/OBSERVABILITY.md - Logging, metrics, and alerting
  • docs/PERFORMANCE.md - Performance budgets and monitoring
  • docs/BACKUP_RECOVERY.md - Backup and disaster recovery plans
  • docs/RELEASE_PROCESS.md - Release management procedures
  • docs/RATE_LIMITING.md - API rate limiting, throttling, and abuse prevention
  • docs/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.md exists at the project root and is referenced from AGENTS.md, COMBINED_INSTRUCTIONS.md, OPERATING_GUIDELINES.md, and docs/CICD.md. Missing = validation fail.
  • Docstring lint wired into CI — docs/CICD.md has 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=80 is configured in CI; for TypeScript projects, eslint jsdoc/require-jsdoc is set to error. Either must be present and active.
  • Design system standard present — DESIGN_SYSTEM.md exists at the project root and is referenced from AGENTS.md, COMBINED_INSTRUCTIONS.md, OPERATING_GUIDELINES.md, and docs/CICD.md. A tokens/ directory exists with at least the color, typography, and spacing token groups. Missing = validation fail.
  • Design system lint wired into CI — docs/CICD.md has 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.md exists at the project root and is referenced from AGENTS.md, COMBINED_INSTRUCTIONS.md, OPERATING_GUIDELINES.md, and docs/CICD.md. A .vale.ini exists with the amph/ style pack. Missing = validation fail.
  • Voice / writing lint wired into CI — docs/CICD.md has a Voice / Writing Lint Stage (3.7) that runs Vale + the no-ai-slop/no-ai-slop ESLint 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:

  1. Complete project documentation suite
  2. SOLID five-layer architecture
  3. TDD and SOLID protocol documents
  4. Data logic and UI wireframes
  5. Functional project scaffold
  6. Validation report
  7. Implementation roadmap
  8. Session handover documentation
  9. Docstring/JSDoc standard — DOCSTRING_STANDARD.md at the project root, wired into AGENTS.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.
  10. Design system standard — DESIGN_SYSTEM.md at the project root, with a tokens/ directory compiled via Style Dictionary. Wired into AGENTS.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 from tokens/, never invent hex/spacing/font/icon values.
  11. Voice / writing standard — VOICE_GUIDE.md at the project root, with a .vale.ini and the amph/ style pack. Wired into AGENTS.md, COMBINED_INSTRUCTIONS.md, OPERATING_GUIDELINES.md, and the CI pipeline (Voice / Writing Lint Stage 3.7). Vale + the no-ai-slop/no-ai-slop ESLint 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

projectamazonph
projectamazonph/agent-skill-framework

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.

★ 0
projectamazonph
projectamazonph/agent-skill-framework

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.

★ 0
projectamazonph
projectamazonph/agent-skill-framework

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.

★ 0
projectamazonph
projectamazonph/agent-skill-framework

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.

★ 0
projectamazonph
projectamazonph/agent-skill-framework

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.

★ 0
projectamazonph
projectamazonph/agent-skill-framework

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.

★ 0