[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M76VSW0R9CPZ543ZQMTGYB1B":3,"skill-same:01M76VSW0R9CPZ543ZQMTGYB1B":89},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":29,"commitSha":30,"skillDirectory":31,"forksCount":13,"repositoryHtmlUrl":32,"repositoryHomepageUrl":6,"ownerHtmlUrl":33,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":34,"install":35,"resources":48},"01M76VSW0R9CPZ543ZQMTGYB1B","codebase-spec-extractor",null,"Extract complete, replicable engineering specifications from existing codebases. Produces documentation detailed enough to fully replicate a project without seeing the original source code—even using a different tech stack. Use when: analyzing existing projects, documenting legacy systems, creating technical specs from code, preparing for system migration, or onboarding new teams. Triggers: 'extract spec from code', 'document codebase', 'analyze project architecture', 'create spec from existing system'.","lzy18001500226\u002FMoSim","lzy18001500226","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F152623587?v=4","01M71ZMEX36NK05B642131DEEK","01M71ZMEXSMX72KPVNJ572G0CM",0,"MIT","https:\u002F\u002Fgithub.com\u002Flzy18001500226\u002FMoSim\u002Fblob\u002Fmain\u002FReferences\u002FAgent\u002FWorkflow\u002Fokwinds\u002Fmiscellany\u002Fagent\u002Fskills\u002Fcodebase-spec-extractor\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: codebase-spec-extractor\ndescription: \"Extract complete, replicable engineering specifications from existing codebases. Produces documentation detailed enough to fully replicate a project without seeing the original source code—even using a different tech stack. Use when: analyzing existing projects, documenting legacy systems, creating technical specs from code, preparing for system migration, or onboarding new teams. Triggers: 'extract spec from code', 'document codebase', 'analyze project architecture', 'create spec from existing system'.\"\nlicense: MIT\ncompatibility: \"Requires bash, standard Unix tools. Optional: ripgrep (rg) for faster scanning.\"\nmetadata:\n  author: user\n  version: \"0.1.0\"\n  category: engineering\n  tags: \"specification, documentation, codebase-analysis, architecture\"\n---\n\n# Codebase Spec Extractor\n\n## Overview\n\nExtract engineering specifications from existing codebases with one goal: **produce documentation so complete that the project can be fully replicated without seeing the original source code**.\n\nThis is NOT about filling templates. This is about **deconstructing every detail** and documenting it with engineering precision.\n\n## Requirements\n\n- `bash` (macOS default Bash 3.2 supported)\n- Standard Unix tools: `find`, `grep`, `sed`, `wc`, `date`\n- Optional (recommended): `rg` (ripgrep) for faster scans in large repos\n\n## When to Use\n\n- You need **implementation-grade** specs for a codebase (migration, rewrite, onboarding, vendor handoff).\n- You keep finding “implicit rules” in code and want them made explicit.\n- You want a repeatable inventory + spec skeleton + verification workflow.\n\n## When NOT to Use\n\n- You only need a quick architecture overview or a lightweight README update.\n- Your main goal is security auditing, performance profiling, or code style cleanup (use dedicated workflows\u002Ftools).\n- The repository contains highly sensitive data and you cannot safely store path-rich reports\u002Fspecs.\n\n## Core Principle: Deconstruction Thinking\n\n**The framework is a guide, not a boundary.** Real projects are messy, creative, and often surprising. Your job is to:\n\n1. **Discover** what exists (not assume what should exist)\n2. **Understand** why it exists (not just what it does)\n3. **Document** how to replicate it (not just describe it)\n\n### The Deconstruction Questions\n\nFor EVERY piece of code, structure, or behavior you encounter, ask:\n\n```\n┌─────────────────────────────────────────────────────────────────┐\n│                 The 7 Deconstruction Questions                   │\n├─────────────────────────────────────────────────────────────────┤\n│                                                                 │\n│  1. WHAT is this?                                               │\n│     → Name it. Classify it. Place it in context.                │\n│                                                                 │\n│  2. WHY does it exist?                                          │\n│     → What problem does it solve? What would break without it?  │\n│                                                                 │\n│  3. HOW does it work?                                           │\n│     → Step-by-step logic. Every branch. Every edge case.        │\n│                                                                 │\n│  4. WHAT are its inputs?                                        │\n│     → All forms. All sources. All validations.                  │\n│                                                                 │\n│  5. WHAT are its outputs?                                       │\n│     → All forms. All destinations. All side effects.            │\n│                                                                 │\n│  6. WHAT depends on it? What does it depend on?                 │\n│     → Upstream. Downstream. External.                           │\n│                                                                 │\n│  7. WHAT can go wrong?                                          │\n│     → Errors. Failures. Edge cases. Recovery.                   │\n│                                                                 │\n└─────────────────────────────────────────────────────────────────┘\n```\n\nIf you can answer all 7 questions for every element, the spec is complete.\n\n### Framework Flexibility\n\nThe output structure provided below is a **starting point**. When you encounter something that doesn't fit:\n\n1. **Don't force it** into an existing category\n2. **Create a new category** that accurately describes it\n3. **Apply the same 7 questions** to document it\n4. **Add it to the spec** with clear explanation\n\nExamples of things that might not fit standard frameworks:\n- Custom DSLs or configuration languages\n- Unusual architectural patterns\n- Legacy code with implicit rules\n- Domain-specific algorithms\n- Complex state machines\n- Multi-system orchestration\n- Real-time\u002Fstreaming logic\n- Hardware integrations\n\n**Document what IS, not what SHOULD BE.**\n\n## Replicability Test\n\nEvery piece of documentation must answer: **\"Can someone implement this correctly using only this description?\"**\n\n```\n┌─────────────────────────────────────────────────────────────────┐\n│                    Replicability Test                           │\n├─────────────────────────────────────────────────────────────────┤\n│  For each documented element, verify:                           │\n│                                                                 │\n│  □ Inputs: All possible input forms documented?                 │\n│  □ Outputs: All possible output forms documented?               │\n│  □ Logic: Complete decision tree with all branches?             │\n│  □ Constraints: All validation rules and limits?                │\n│  □ Edge cases: All boundary conditions handled?                 │\n│  □ Dependencies: All upstream\u002Fdownstream interactions?          │\n│  □ Errors: All failure modes and handling strategies?           │\n│                                                                 │\n│  If any answer is \"no\", the documentation is incomplete.        │\n└─────────────────────────────────────────────────────────────────┘\n```\n\n## Workflow\n\n### Phase 0: Project Discovery\n\nBefore applying any framework, understand what the project actually is.\n\n**0.1 Initial Scan**\n```bash\n# Run the discovery script to get project overview\nbash scripts\u002Fdiscover_project.sh \u003Cproject_root>\n```\n\nThe script identifies:\n- Project type (backend API, frontend SPA, fullstack, library, CLI, etc.)\n- Tech stack (languages, frameworks, databases, external services)\n- Entry points and build system\n- Directory structure patterns\n\n**0.2 Scope Confirmation**\n\nClarify with user:\n- Full project or specific modules?\n- Include deployment\u002Finfrastructure specs?\n- Target audience for the spec (same team? different team? different tech stack?)\n- Any known areas of complexity or legacy code?\n\n### Phase 1: Structural Decomposition\n\nDecompose the project into documentable units. **Do not assume a fixed structure**—let the project's actual organization guide you.\n\n**1.1 Identify All Documentable Elements**\n\nScan for and categorize everything that needs documentation:\n\n| Category | What to Find | How to Find |\n|----------|--------------|-------------|\n| **Configuration** | Environment vars, config files, feature flags | `*.env*`, `config.*`, `settings.*` |\n| **Data Layer** | Models, schemas, migrations, seeds | ORM definitions, SQL files, schema files |\n| **API Layer** | Routes, controllers, middleware, auth | Route definitions, handler files |\n| **Business Logic** | Services, use cases, domain rules | Service classes, domain modules |\n| **Integration** | External APIs, queues, caches, storage | Client classes, adapter modules |\n| **UI Layer** | Components, pages, state management | Component files, route configs |\n| **Infrastructure** | Dockerfile, CI\u002FCD, IaC | Deployment configs, pipeline files |\n| **Testing** | Test files, fixtures, mocks | `*_test.*`, `*.spec.*`, `__tests__\u002F` |\n\n**1.2 Build the Element Inventory**\n\nCreate a complete inventory before documenting. Use:\n```bash\nbash scripts\u002Finventory_elements.sh \u003Cproject_root> \u003Coutput_file>\n```\n\n**1.3 Handle Non-Standard Elements**\n\nIf you find elements that don't fit the categories above:\n1. Create a new category\n2. Document the category's purpose\n3. Apply the same replicability standards\n\n**The framework adapts to the project, not the other way around.**\n\n**1.4 Document Discoveries and Surprises**\n\nReal projects contain surprises. These are often the MOST IMPORTANT things to document because they're the hardest to discover:\n\n| Discovery Type | Example | How to Document |\n|----------------|---------|-----------------|\n| **Implicit Rules** | \"Orders over $1000 require manager approval\" (found in code, not docs) | Create explicit business rule with source code reference |\n| **Hidden Dependencies** | Service A secretly calls Service B for validation | Document in both A and B specs, explain the coupling |\n| **Legacy Workarounds** | \"We parse this field differently because of a 2019 bug\" | Document the workaround AND the original bug context |\n| **Undocumented APIs** | Internal endpoints used by admin tools | Full API spec, note \"undocumented\" status |\n| **Magic Numbers** | `if (retries > 3)` - why 3? | Document the number AND reasoning if discoverable |\n| **Implicit Ordering** | \"This must run before that\" with no explicit dependency | Document the ordering constraint explicitly |\n| **Environment-Specific Behavior** | Different logic in prod vs dev | Document ALL environment variations |\n| **Technical Debt** | \"This should be refactored but works\" | Document current behavior AND known issues |\n\n**Key principle:** If you had to figure something out by reading code, that means it wasn't documented. Document it now so the next person doesn't have to.\n\n### Phase 2: Deep Extraction\n\nFor each element in the inventory, extract complete specifications.\n\n**2.1 Extraction Template**\n\nApply this template to every significant element:\n\n```markdown\n## [Element Name]\n\n### Source\n- Source: path\u002Fto\u002Ffile.ext\n- Source: path\u002Fto\u002Ffile.ext#SymbolName\n- Source: path\u002Fto\u002Ffile.ext:123\n\n### Purpose\nWhat problem does this solve? Why does it exist?\n\n### Interface\n- Inputs: [All input parameters, types, constraints, defaults]\n- Outputs: [All output forms, types, structures]\n- Side effects: [State changes, external calls, events emitted]\n\n### Logic\n[Complete decision tree or algorithm description]\n- Step 1: ...\n- Step 2: ...\n- Conditions: if X then Y, else Z\n- Loops: for each item in collection, do...\n\n### Constraints\n- Validation rules: [All input validation]\n- Business rules: [Domain constraints]\n- Technical limits: [Size limits, rate limits, timeouts]\n\n### Dependencies\n- Uses: [What this element calls\u002Fimports]\n- Used by: [What calls\u002Fimports this element]\n- External: [Third-party services, APIs]\n\n### Error Handling\n- Error conditions: [What can go wrong]\n- Error responses: [How errors are communicated]\n- Recovery: [Retry logic, fallbacks, cleanup]\n\n### Edge Cases\n- Empty\u002Fnull inputs: [Handling]\n- Maximum values: [Handling]\n- Concurrent access: [Handling]\n- [Any other edge cases specific to this element]\n```\n\n**2.2 Extraction Checklist by Element Type**\n\nSee `references\u002Fextraction-checklist.md` for detailed checklists for:\n- API endpoints\n- Database entities\n- Business logic modules\n- UI components\n- Background jobs\n- Integration adapters\n\n### Phase 3: Cross-Cutting Concerns\n\nDocument aspects that span multiple elements:\n\n**3.1 Data Flow**\n- How data enters the system\n- How data transforms through layers\n- How data exits the system\n- Data validation checkpoints\n\n**3.2 Authentication & Authorization**\n- Auth mechanisms (JWT, sessions, API keys, OAuth)\n- Permission model (RBAC, ABAC, custom)\n- Protected resources and access rules\n\n**3.3 Error Strategy**\n- Global error handling patterns\n- Error code taxonomy\n- Logging and monitoring hooks\n- User-facing error messages\n\n**3.4 State Management**\n- What state exists (DB, cache, session, UI state)\n- State consistency guarantees\n- State synchronization mechanisms\n\n**3.5 Performance Characteristics**\n- Caching strategies\n- Query optimization patterns\n- Async\u002Fbackground processing\n- Rate limiting\n\n### Phase 4: Test Specifications\n\nExtract testable specifications that serve as both documentation and validation criteria.\n\n**4.1 Unit Test Specs**\n\nFor each function\u002Fmethod with business logic:\n```markdown\n### Function: calculateDiscount(order, customer)\n\n| Scenario | Input | Expected Output | Notes |\n|----------|-------|-----------------|-------|\n| New customer, small order | order.total=50, customer.isNew=true | 0 | Min threshold not met |\n| New customer, large order | order.total=150, customer.isNew=true | 15 | 10% new customer discount |\n| VIP customer | order.total=100, customer.tier='VIP' | 20 | 20% VIP discount |\n| Combined discounts | order.total=200, customer.isNew=true, hasPromo=true | 30 | Max discount cap |\n| Null order | null, customer | throws InvalidInputError | |\n```\n\n**4.2 Integration Test Specs**\n\nFor each module interaction:\n```markdown\n### Integration: OrderService → PaymentGateway\n\n| Scenario | Setup | Action | Verification |\n|----------|-------|--------|--------------|\n| Successful payment | Valid order, funded card | processPayment() | Order status = PAID, payment record created |\n| Declined card | Valid order, declined card | processPayment() | Order status = PAYMENT_FAILED, retry scheduled |\n| Gateway timeout | Valid order, slow gateway | processPayment() | Timeout after 30s, order status = PENDING |\n```\n\n**4.3 E2E Test Specs**\n\nFor each critical user journey:\n```markdown\n### Journey: User completes purchase\n\nSteps:\n1. User adds item to cart → Cart shows 1 item\n2. User proceeds to checkout → Checkout page loads with cart summary\n3. User enters shipping info → Shipping options displayed\n4. User selects payment method → Payment form shown\n5. User submits order → Order confirmation displayed, email sent\n\nVariations:\n- Guest checkout vs logged-in user\n- Single item vs multiple items\n- Standard vs express shipping\n```\n\n### Phase 5: Verification & Validation\n\n**5.1 Completeness Check**\n\nUse scripts to **assist discovery and gap-finding**. These checks are heuristic—they help you find likely missing documentation or broken links, but they do not “prove” completeness.\n\nRun bidirectional verification:\n\n```bash\n# Forward: Does every code element have spec coverage?\nbash scripts\u002Fverify_coverage.sh \u003Cproject_root> \u003Cspec_output>\n\n# Spec → Code: Verify spec anchors map to code (requires Source: lines in your spec).\nbash scripts\u002Fverify_implementation.sh \u003Cspec_output> \u003Cproject_root>\n```\n\n**Source anchors (recommended)**\n\nTo make Spec → Code verification practical, add `Source:` lines to your spec markdown. Supported formats:\n\n- `Source: relative\u002Fpath\u002Fto\u002Ffile.ext`\n- `Source: relative\u002Fpath\u002Fto\u002Ffile.ext#SymbolName` (best-effort text match)\n- `Source: relative\u002Fpath\u002Fto\u002Ffile.ext:123` (line existence check)\n- `Source: relative\u002Fpath\u002Fto\u002Ffile.ext:123#SymbolName`\n\n**5.2 Replication Test**\n\nThe ultimate validation—can the spec be used to replicate the project?\n\n```markdown\n## Replication Verification Protocol\n\n1. Provide spec to a fresh Claude instance (no access to original code)\n2. Ask it to implement [specific module] using only the spec\n3. Compare:\n   - Does it handle all documented inputs correctly?\n   - Does it produce all documented outputs correctly?\n   - Does it handle all documented edge cases?\n   - Does it follow all documented constraints?\n\n4. Any discrepancy = spec is incomplete. Update and repeat.\n```\n\n**5.3 Diff Report**\n\nGenerate a report of gaps:\n```markdown\n## Spec Completeness Report\n\n### Documented and Verified\n- [List of elements with complete specs]\n\n### Documented but Unverified\n- [List of elements needing verification]\n\n### Found in Code but Not Documented\n- [List of elements missing from spec]\n\n### Ambiguous or Unclear\n- [List of elements needing clarification]\n```\n\n## Output Structure\n\nDefault output structure (adapt based on project type):\n\n```\nspec\u002F\n├── 00_Overview\u002F\n│   ├── PROJECT.md              # Identity, tech stack, architecture overview\n│   ├── ARCHITECTURE.md         # System design, module relationships\n│   ├── GLOSSARY.md             # Domain terms and definitions\n│   └── diagrams\u002F               # Architecture diagrams (Mermaid\u002FPlantUML)\n│\n├── 01_Configuration\u002F\n│   ├── ENVIRONMENT.md          # All environment variables\n│   ├── FEATURE_FLAGS.md        # Feature toggles and their effects\n│   └── schemas\u002F                # Config file schemas (JSON Schema, etc.)\n│\n├── 02_Data\u002F\n│   ├── ENTITIES.md             # All data entities with full field specs\n│   ├── RELATIONSHIPS.md        # Entity relationships, constraints\n│   ├── MIGRATIONS.md           # Schema evolution history\n│   └── schemas\u002F                # Executable schema definitions\n│\n├── 03_API\u002F\n│   ├── ENDPOINTS.md            # All API endpoints\n│   ├── AUTHENTICATION.md       # Auth mechanisms and flows\n│   ├── ERRORS.md               # Error codes and responses\n│   └── openapi\u002F                # OpenAPI specs if applicable\n│\n├── 04_Business_Logic\u002F\n│   ├── RULES.md                # Business rules catalog\n│   ├── WORKFLOWS.md            # Multi-step processes\n│   ├── STATE_MACHINES.md       # State transitions\n│   └── CALCULATIONS.md         # Formulas and algorithms\n│\n├── 05_Integrations\u002F\n│   ├── EXTERNAL_APIS.md        # Third-party API interactions\n│   ├── MESSAGING.md            # Queue\u002Fevent interactions\n│   └── STORAGE.md              # File\u002Fblob storage interactions\n│\n├── 06_UI\u002F (if applicable)\n│   ├── COMPONENTS.md           # UI component catalog\n│   ├── PAGES.md                # Page structures and routing\n│   ├── STATE.md                # Frontend state management\n│   └── INTERACTIONS.md         # User interaction patterns\n│\n├── 07_Infrastructure\u002F\n│   ├── DEPLOYMENT.md           # Deployment architecture\n│   ├── SCALING.md              # Scaling strategies\n│   └── MONITORING.md           # Observability setup\n│\n├── 08_Testing\u002F\n│   ├── UNIT_SPECS.md           # Unit test specifications\n│   ├── INTEGRATION_SPECS.md    # Integration test specifications\n│   ├── E2E_SPECS.md            # End-to-end test specifications\n│   └── test-cases\u002F             # Executable test case files\n│\n├── 09_Verification\u002F\n│   ├── COVERAGE_REPORT.md      # Spec coverage analysis\n│   ├── REPLICATION_GUIDE.md    # How to replicate from spec\n│   └── KNOWN_GAPS.md           # Documented limitations\n│\n└── SPEC_INDEX.md               # Master index of all spec documents\n```\n\n**Important**: This structure is a starting point. Add, remove, or reorganize sections based on what the project actually contains.\n\n## Resources\n\n**Scripts:**\n- `scripts\u002Fdiscover_project.sh` - Initial project scanning and classification\n- `scripts\u002Finventory_elements.sh` - Generate element inventory from codebase\n- `scripts\u002Fverify_coverage.sh` - Check spec completeness against code\n- `scripts\u002Fverify_implementation.sh` - Validate spec Source anchors map to code\n- `scripts\u002Fgenerate_skeleton.sh` - Create output directory structure\n\n**References:**\n- `references\u002Fextraction-checklist.md` - Detailed checklists by element type\n- `references\u002Freplicability-criteria.md` - Standards for spec quality\n\n## AI\u002FML Systems\n\nIf the project includes AI\u002FML components (LLM integrations, ML models, AI agents, RAG systems), document extra details required for replicability:\n\n- Exact prompts and templates (not summaries)\n- Model\u002Fprovider identifiers and versions\n- Context management (inputs, tool calls, memory, truncation rules)\n- Retrieval (chunking, embedding model, ranking, filters)\n- Evaluation datasets and pass\u002Ffail criteria\n\n**Key principle:** AI systems require extra documentation because they are non-deterministic. Document exact prompts (not summaries), model versions, and evaluation data.\n\n## Critical Reminders\n\n1. **Framework is a guide, not a constraint**: If the project has elements outside the framework, extend the framework.\n\n2. **Replicability is the only measure**: Every spec element must enable implementation without seeing original code.\n\n3. **Verify bidirectionally**: Code → Spec and Spec → Code. Both directions must be complete.\n\n4. **Document the unexpected**: Legacy code, workarounds, technical debt, and \"why\" decisions are often the most valuable documentation.\n\n5. **Test specs are part of the spec**: If you can't write a test case for it, you haven't documented it well enough.\n\n6. **AI systems need extra detail**: Prompts, model versions, and evaluation data are essential for replication.\n","# Codebase Spec Extractor\n\n## Overview\n\nExtract engineering specifications from existing codebases with one goal: **produce documentation so complete that the project can be fully replicated without seeing the original source code**.\n\nThis is NOT about filling templates. This is about **deconstructing every detail** and documenting it with engineering precision.\n\n## Requirements\n\n- `bash` (macOS default Bash 3.2 supported)\n- Standard Unix tools: `find`, `grep`, `sed`, `wc`, `date`\n- Optional (recommended): `rg` (ripgrep) for faster scans in large repos\n\n## When to Use\n\n- You need **implementation-grade** specs for a codebase (migration, rewrite, onboarding, vendor handoff).\n- You keep finding “implicit rules” in code and want them made explicit.\n- You want a repeatable inventory + spec skeleton + verification workflow.\n\n## When NOT to Use\n\n- You only need a quick architecture overview or a lightweight README update.\n- Your main goal is security auditing, performance profiling, or code style cleanup (use dedicated workflows\u002Ftools).\n- The repository contains highly sensitive data and you cannot safely store path-rich reports\u002Fspecs.\n\n## Core Principle: Deconstruction Thinking\n\n**The framework is a guide, not a boundary.** Real projects are messy, creative, and often surprising. Your job is to:\n\n1. **Discover** what exists (not assume what should exist)\n2. **Understand** why it exists (not just what it does)\n3. **Document** how to replicate it (not just describe it)\n\n### The Deconstruction Questions\n\nFor EVERY piece of code, structure, or behavior you encounter, ask:\n\n```\n┌─────────────────────────────────────────────────────────────────┐\n│                 The 7 Deconstruction Questions                   │\n├─────────────────────────────────────────────────────────────────┤\n│                                                                 │\n│  1. WHAT is this?                                               │\n│     → Name it. Classify it. Place it in context.                │\n│                                                                 │\n│  2. WHY does it exist?                                          │\n│     → What problem does it solve? What would break without it?  │\n│                                                                 │\n│  3. HOW does it work?                                           │\n│     → Step-by-step logic. Every branch. Every edge case.        │\n│                                                                 │\n│  4. WHAT are its inputs?                                        │\n│     → All forms. All sources. All validations.                  │\n│                                                                 │\n│  5. WHAT are its outputs?                                       │\n│     → All forms. All destinations. All side effects.            │\n│                                                                 │\n│  6. WHAT depends on it? What does it depend on?                 │\n│     → Upstream. Downstream. External.                           │\n│                                                                 │\n│  7. WHAT can go wrong?                                          │\n│     → Errors. Failures. Edge cases. Recovery.                   │\n│                                                                 │\n└─────────────────────────────────────────────────────────────────┘\n```\n\nIf you can answer all 7 questions for every element, the spec is complete.\n\n### Framework Flexibility\n\nThe output structure provided below is a **starting point**. When you encounter something that doesn't fit:\n\n1. **Don't force it** into an existing category\n2. **Create a new category** that accurately describes it\n3. **Apply the same 7 questions** to document it\n4. **Add it to the spec** with clear explanation\n\nExamples of things that might not fit standard frameworks:\n- Custom DSLs or configuration languages\n- Unusual architectural patterns\n- Legacy code with implicit rules\n- Domain-specific algorithms\n- Complex state machines\n- Multi-system orchestration\n- Real-time\u002Fstreaming logic\n- Hardware integrations\n\n**Document what IS, not what SHOULD BE.**\n\n## Replicability Test\n\nEvery piece of documentation must answer: **\"Can someone implement this correctly using only this description?\"**\n\n```\n┌─────────────────────────────────────────────────────────────────┐\n│                    Replicability Test                           │\n├─────────────────────────────────────────────────────────────────┤\n│  For each documented element, verify:                           │\n│                                                                 │\n│  □ Inputs: All possible input forms documented?                 │\n│  □ Outputs: All possible output forms documented?               │\n│  □ Logic: Complete decision tree with all branches?             │\n│  □ Constraints: All validation rules and limits?                │\n│  □ Edge cases: All boundary conditions handled?                 │\n│  □ Dependencies: All upstream\u002Fdownstream interactions?          │\n│  □ Errors: All failure modes and handling strategies?           │\n│                                                                 │\n│  If any answer is \"no\", the documentation is incomplete.        │\n└─────────────────────────────────────────────────────────────────┘\n```\n\n## Workflow\n\n### Phase 0: Project Discovery\n\nBefore applying any framework, understand what the project actually is.\n\n**0.1 Initial Scan**\n```bash\n# Run the discovery script to get project overview\nbash scripts\u002Fdiscover_project.sh \u003Cproject_root>\n```\n\nThe script identifies:\n- Project type (backend API, frontend SPA, fullstack, library, CLI, etc.)\n- Tech stack (languages, frameworks, databases, external services)\n- Entry points and build system\n- Directory structure patterns\n\n**0.2 Scope Confirmation**\n\nClarify with user:\n- Full project or specific modules?\n- Include deployment\u002Finfrastructure specs?\n- Target audience for the spec (same team? different team? different tech stack?)\n- Any known areas of complexity or legacy code?\n\n### Phase 1: Structural Decomposition\n\nDecompose the project into documentable units. **Do not assume a fixed structure**—let the project's actual organization guide you.\n\n**1.1 Identify All Documentable Elements**\n\nScan for and categorize everything that needs documentation:\n\n| Category | What to Find | How to Find |\n|----------|--------------|-------------|\n| **Configuration** | Environment vars, config files, feature flags | `*.env*`, `config.*`, `settings.*` |\n| **Data Layer** | Models, schemas, migrations, seeds | ORM definitions, SQL files, schema files |\n| **API Layer** | Routes, controllers, middleware, auth | Route definitions, handler files |\n| **Business Logic** | Services, use cases, domain rules | Service classes, domain modules |\n| **Integration** | External APIs, queues, caches, storage | Client classes, adapter modules |\n| **UI Layer** | Components, pages, state management | Component files, route configs |\n| **Infrastructure** | Dockerfile, CI\u002FCD, IaC | Deployment configs, pipeline files |\n| **Testing** | Test files, fixtures, mocks | `*_test.*`, `*.spec.*`, `__tests__\u002F` |\n\n**1.2 Build the Element Inventory**\n\nCreate a complete inventory before documenting. Use:\n```bash\nbash scripts\u002Finventory_elements.sh \u003Cproject_root> \u003Coutput_file>\n```\n\n**1.3 Handle Non-Standard Elements**\n\nIf you find elements that don't fit the categories above:\n1. Create a new category\n2. Document the category's purpose\n3. Apply the same replicability standards\n\n**The framework adapts to the project, not the other way around.**\n\n**1.4 Document Discoveries and Surprises**\n\nReal projects contain surprises. These are often the MOST IMPORTANT things to document because they're the hardest to discover:\n\n| Discovery Type | Example | How to Document |\n|----------------|---------|-----------------|\n| **Implicit Rules** | \"Orders over $1000 require manager approval\" (found in code, not docs) | Create explicit business rule with source code reference |\n| **Hidden Dependencies** | Service A secretly calls Service B for validation | Document in both A and B specs, explain the coupling |\n| **Legacy Workarounds** | \"We parse this field differently because of a 2019 bug\" | Document the workaround AND the original bug context |\n| **Undocumented APIs** | Internal endpoints used by admin tools | Full API spec, note \"undocumented\" status |\n| **Magic Numbers** | `if (retries > 3)` - why 3? | Document the number AND reasoning if discoverable |\n| **Implicit Ordering** | \"This must run before that\" with no explicit dependency | Document the ordering constraint explicitly |\n| **Environment-Specific Behavior** | Different logic in prod vs dev | Document ALL environment variations |\n| **Technical Debt** | \"This should be refactored but works\" | Document current behavior AND known issues |\n\n**Key principle:** If you had to figure something out by reading code, that means it wasn't documented. Document it now so the next person doesn't have to.\n\n### Phase 2: Deep Extraction\n\nFor each element in the inventory, extract complete specifications.\n\n**2.1 Extraction Template**\n\nApply this template to every significant element:\n\n```markdown\n## [Element Name]\n\n### Source\n- Source: path\u002Fto\u002Ffile.ext\n- Source: path\u002Fto\u002Ffile.ext#SymbolName\n- Source: path\u002Fto\u002Ffile.ext:123\n\n### Purpose\nWhat problem does this solve? Why does it exist?\n\n### Interface\n- Inputs: [All input parameters, types, constraints, defaults]\n- Outputs: [All output forms, types, structures]\n- Side effects: [State changes, external calls, events emitted]\n\n### Logic\n[Complete decision tree or algorithm description]\n- Step 1: ...\n- Step 2: ...\n- Conditions: if X then Y, else Z\n- Loops: for each item in collection, do...\n\n### Constraints\n- Validation rules: [All input validation]\n- Business rules: [Domain constraints]\n- Technical limits: [Size limits, rate limits, timeouts]\n\n### Dependencies\n- Uses: [What this element calls\u002Fimports]\n- Used by: [What calls\u002Fimports this element]\n- External: [Third-party services, APIs]\n\n### Error Handling\n- Error conditions: [What can go wrong]\n- Error responses: [How errors are communicated]\n- Recovery: [Retry logic, fallbacks, cleanup]\n\n### Edge Cases\n- Empty\u002Fnull inputs: [Handling]\n- Maximum values: [Handling]\n- Concurrent access: [Handling]\n- [Any other edge cases specific to this element]\n```\n\n**2.2 Extraction Checklist by Element Type**\n\nSee `references\u002Fextraction-checklist.md` for detailed checklists for:\n- API endpoints\n- Database entities\n- Business logic modules\n- UI components\n- Background jobs\n- Integration adapters\n\n### Phase 3: Cross-Cutting Concerns\n\nDocument aspects that span multiple elements:\n\n**3.1 Data Flow**\n- How data enters the system\n- How data transforms through layers\n- How data exits the system\n- Data validation checkpoints\n\n**3.2 Authentication & Authorization**\n- Auth mechanisms (JWT, sessions, API keys, OAuth)\n- Permission model (RBAC, ABAC, custom)\n- Protected resources and access rules\n\n**3.3 Error Strategy**\n- Global error handling patterns\n- Error code taxonomy\n- Logging and monitoring hooks\n- User-facing error messages\n\n**3.4 State Management**\n- What state exists (DB, cache, session, UI state)\n- State consistency guarantees\n- State synchronization mechanisms\n\n**3.5 Performance Characteristics**\n- Caching strategies\n- Query optimization patterns\n- Async\u002Fbackground processing\n- Rate limiting\n\n### Phase 4: Test Specifications\n\nExtract testable specifications that serve as both documentation and validation criteria.\n\n**4.1 Unit Test Specs**\n\nFor each function\u002Fmethod with business logic:\n```markdown\n### Function: calculateDiscount(order, customer)\n\n| Scenario | Input | Expected Output | Notes |\n|----------|-------|-----------------|-------|\n| New customer, small order | order.total=50, customer.isNew=true | 0 | Min threshold not met |\n| New customer, large order | order.total=150, customer.isNew=true | 15 | 10% new customer discount |\n| VIP customer | order.total=100, customer.tier='VIP' | 20 | 20% VIP discount |\n| Combined discounts | order.total=200, customer.isNew=true, hasPromo=true | 30 | Max discount cap |\n| Null order | null, customer | throws InvalidInputError | |\n```\n\n**4.2 Integration Test Specs**\n\nFor each module interaction:\n```markdown\n### Integration: OrderService → PaymentGateway\n\n| Scenario | Setup | Action | Verification |\n|----------|-------|--------|--------------|\n| Successful payment | Valid order, funded card | processPayment() | Order status = PAID, payment record created |\n| Declined card | Valid order, declined card | processPayment() | Order status = PAYMENT_FAILED, retry scheduled |\n| Gateway timeout | Valid order, slow gateway | processPayment() | Timeout after 30s, order status = PENDING |\n```\n\n**4.3 E2E Test Specs**\n\nFor each critical user journey:\n```markdown\n### Journey: User completes purchase\n\nSteps:\n1. User adds item to cart → Cart shows 1 item\n2. User proceeds to checkout → Checkout page loads with cart summary\n3. User enters shipping info → Shipping options displayed\n4. User selects payment method → Payment form shown\n5. User submits order → Order confirmation displayed, email sent\n\nVariations:\n- Guest checkout vs logged-in user\n- Single item vs multiple items\n- Standard vs express shipping\n```\n\n### Phase 5: Verification & Validation\n\n**5.1 Completeness Check**\n\nUse scripts to **assist discovery and gap-finding**. These checks are heuristic—they help you find likely missing documentation or broken links, but they do not “prove” completeness.\n\nRun bidirectional verification:\n\n```bash\n# Forward: Does every code element have spec coverage?\nbash scripts\u002Fverify_coverage.sh \u003Cproject_root> \u003Cspec_output>\n\n# Spec → Code: Verify spec anchors map to code (requires Source: lines in your spec).\nbash scripts\u002Fverify_implementation.sh \u003Cspec_output> \u003Cproject_root>\n```\n\n**Source anchors (recommended)**\n\nTo make Spec → Code verification practical, add `Source:` lines to your spec markdown. Supported formats:\n\n- `Source: relative\u002Fpath\u002Fto\u002Ffile.ext`\n- `Source: relative\u002Fpath\u002Fto\u002Ffile.ext#SymbolName` (best-effort text match)\n- `Source: relative\u002Fpath\u002Fto\u002Ffile.ext:123` (line existence check)\n- `Source: relative\u002Fpath\u002Fto\u002Ffile.ext:123#SymbolName`\n\n**5.2 Replication Test**\n\nThe ultimate validation—can the spec be used to replicate the project?\n\n```markdown\n## Replication Verification Protocol\n\n1. Provide spec to a fresh Claude instance (no access to original code)\n2. Ask it to implement [specific module] using only the spec\n3. Compare:\n   - Does it handle all documented inputs correctly?\n   - Does it produce all documented outputs correctly?\n   - Does it handle all documented edge cases?\n   - Does it follow all documented constraints?\n\n4. Any discrepancy = spec is incomplete. Update and repeat.\n```\n\n**5.3 Diff Report**\n\nGenerate a report of gaps:\n```markdown\n## Spec Completeness Report\n\n### Documented and Verified\n- [List of elements with complete specs]\n\n### Documented but Unverified\n- [List of elements needing verification]\n\n### Found in Code but Not Documented\n- [List of elements missing from spec]\n\n### Ambiguous or Unclear\n- [List of elements needing clarification]\n```\n\n## Output Structure\n\nDefault output structure (adapt based on project type):\n\n```\nspec\u002F\n├── 00_Overview\u002F\n│   ├── PROJECT.md              # Identity, tech stack, architecture overview\n│   ├── ARCHITECTURE.md         # System design, module relationships\n│   ├── GLOSSARY.md             # Domain terms and definitions\n│   └── diagrams\u002F               # Architecture diagrams (Mermaid\u002FPlantUML)\n│\n├── 01_Configuration\u002F\n│   ├── ENVIRONMENT.md          # All environment variables\n│   ├── FEATURE_FLAGS.md        # Feature toggles and their effects\n│   └── schemas\u002F                # Config file schemas (JSON Schema, etc.)\n│\n├── 02_Data\u002F\n│   ├── ENTITIES.md             # All data entities with full field specs\n│   ├── RELATIONSHIPS.md        # Entity relationships, constraints\n│   ├── MIGRATIONS.md           # Schema evolution history\n│   └── schemas\u002F                # Executable schema definitions\n│\n├── 03_API\u002F\n│   ├── ENDPOINTS.md            # All API endpoints\n│   ├── AUTHENTICATION.md       # Auth mechanisms and flows\n│   ├── ERRORS.md               # Error codes and responses\n│   └── openapi\u002F                # OpenAPI specs if applicable\n│\n├── 04_Business_Logic\u002F\n│   ├── RULES.md                # Business rules catalog\n│   ├── WORKFLOWS.md            # Multi-step processes\n│   ├── STATE_MACHINES.md       # State transitions\n│   └── CALCULATIONS.md         # Formulas and algorithms\n│\n├── 05_Integrations\u002F\n│   ├── EXTERNAL_APIS.md        # Third-party API interactions\n│   ├── MESSAGING.md            # Queue\u002Fevent interactions\n│   └── STORAGE.md              # File\u002Fblob storage interactions\n│\n├── 06_UI\u002F (if applicable)\n│   ├── COMPONENTS.md           # UI component catalog\n│   ├── PAGES.md                # Page structures and routing\n│   ├── STATE.md                # Frontend state management\n│   └── INTERACTIONS.md         # User interaction patterns\n│\n├── 07_Infrastructure\u002F\n│   ├── DEPLOYMENT.md           # Deployment architecture\n│   ├── SCALING.md              # Scaling strategies\n│   └── MONITORING.md           # Observability setup\n│\n├── 08_Testing\u002F\n│   ├── UNIT_SPECS.md           # Unit test specifications\n│   ├── INTEGRATION_SPECS.md    # Integration test specifications\n│   ├── E2E_SPECS.md            # End-to-end test specifications\n│   └── test-cases\u002F             # Executable test case files\n│\n├── 09_Verification\u002F\n│   ├── COVERAGE_REPORT.md      # Spec coverage analysis\n│   ├── REPLICATION_GUIDE.md    # How to replicate from spec\n│   └── KNOWN_GAPS.md           # Documented limitations\n│\n└── SPEC_INDEX.md               # Master index of all spec documents\n```\n\n**Important**: This structure is a starting point. Add, remove, or reorganize sections based on what the project actually contains.\n\n## Resources\n\n**Scripts:**\n- `scripts\u002Fdiscover_project.sh` - Initial project scanning and classification\n- `scripts\u002Finventory_elements.sh` - Generate element inventory from codebase\n- `scripts\u002Fverify_coverage.sh` - Check spec completeness against code\n- `scripts\u002Fverify_implementation.sh` - Validate spec Source anchors map to code\n- `scripts\u002Fgenerate_skeleton.sh` - Create output directory structure\n\n**References:**\n- `references\u002Fextraction-checklist.md` - Detailed checklists by element type\n- `references\u002Freplicability-criteria.md` - Standards for spec quality\n\n## AI\u002FML Systems\n\nIf the project includes AI\u002FML components (LLM integrations, ML models, AI agents, RAG systems), document extra details required for replicability:\n\n- Exact prompts and templates (not summaries)\n- Model\u002Fprovider identifiers and versions\n- Context management (inputs, tool calls, memory, truncation rules)\n- Retrieval (chunking, embedding model, ranking, filters)\n- Evaluation datasets and pass\u002Ffail criteria\n\n**Key principle:** AI systems require extra documentation because they are non-deterministic. Document exact prompts (not summaries), model versions, and evaluation data.\n\n## Critical Reminders\n\n1. **Framework is a guide, not a constraint**: If the project has elements outside the framework, extend the framework.\n\n2. **Replicability is the only measure**: Every spec element must enable implementation without seeing original code.\n\n3. **Verify bidirectionally**: Code → Spec and Spec → Code. Both directions must be complete.\n\n4. **Document the unexpected**: Legacy code, workarounds, technical debt, and \"why\" decisions are often the most valuable documentation.\n\n5. **Test specs are part of the spec**: If you can't write a test case for it, you haven't documented it well enough.\n\n6. **AI systems need extra detail**: Prompts, model versions, and evaluation data are essential for replication.\n",{"name":5,"license":14,"metadata":23,"description":7,"compatibility":28},{"tags":24,"author":25,"version":26,"category":27},"specification, documentation, codebase-analysis, architecture","user","0.1.0","engineering","Requires bash, standard Unix tools. Optional: ripgrep (rg) for faster scanning.","main","e0ec177d00f087cb04e90206b2f7d3aa2f5a1350","References\u002FAgent\u002FWorkflow\u002Fokwinds\u002Fmiscellany\u002Fagent\u002Fskills\u002Fcodebase-spec-extractor","https:\u002F\u002Fgithub.com\u002Flzy18001500226\u002FMoSim","https:\u002F\u002Fgithub.com\u002Flzy18001500226","2026-08-31 23:29:00",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add lzy18001500226\u002FMoSim --skill codebase-spec-extractor",{"tool":41,"command":42},"bunx","bunx skills add lzy18001500226\u002FMoSim --skill codebase-spec-extractor",{"tool":44,"command":45},"pnpm","pnpm dlx skills add lzy18001500226\u002FMoSim --skill codebase-spec-extractor","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flzy18001500226\u002FMoSim\u002Fblob\u002Fmain\u002FReferences\u002FAgent\u002FWorkflow\u002Fokwinds\u002Fmiscellany\u002Fagent\u002Fskills\u002Fcodebase-spec-extractor\u002FSKILL.md",true,[49,55,59,63,67,73,77,81,85],{"path":50,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":53,"sourceHtmlUrl":54},"README.md","REFERENCE","参考文档",2990,"https:\u002F\u002Fgithub.com\u002Flzy18001500226\u002FMoSim\u002Fblob\u002Fmain\u002FReferences\u002FAgent\u002FWorkflow\u002Fokwinds\u002Fmiscellany\u002Fagent\u002Fskills\u002Fcodebase-spec-extractor\u002FREADME.md",{"path":56,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":57,"sourceHtmlUrl":58},"README.zh-CN.md",3033,"https:\u002F\u002Fgithub.com\u002Flzy18001500226\u002FMoSim\u002Fblob\u002Fmain\u002FReferences\u002FAgent\u002FWorkflow\u002Fokwinds\u002Fmiscellany\u002Fagent\u002Fskills\u002Fcodebase-spec-extractor\u002FREADME.zh-CN.md",{"path":60,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":61,"sourceHtmlUrl":62},"references\u002Fextraction-checklist.md",9574,"https:\u002F\u002Fgithub.com\u002Flzy18001500226\u002FMoSim\u002Fblob\u002Fmain\u002FReferences\u002FAgent\u002FWorkflow\u002Fokwinds\u002Fmiscellany\u002Fagent\u002Fskills\u002Fcodebase-spec-extractor\u002Freferences\u002Fextraction-checklist.md",{"path":64,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":65,"sourceHtmlUrl":66},"references\u002Freplicability-criteria.md",8800,"https:\u002F\u002Fgithub.com\u002Flzy18001500226\u002FMoSim\u002Fblob\u002Fmain\u002FReferences\u002FAgent\u002FWorkflow\u002Fokwinds\u002Fmiscellany\u002Fagent\u002Fskills\u002Fcodebase-spec-extractor\u002Freferences\u002Freplicability-criteria.md",{"path":68,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":71,"sourceHtmlUrl":72},"scripts\u002Fdiscover_project.sh","SCRIPT","脚本",10417,"https:\u002F\u002Fgithub.com\u002Flzy18001500226\u002FMoSim\u002Fblob\u002Fmain\u002FReferences\u002FAgent\u002FWorkflow\u002Fokwinds\u002Fmiscellany\u002Fagent\u002Fskills\u002Fcodebase-spec-extractor\u002Fscripts\u002Fdiscover_project.sh",{"path":74,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":75,"sourceHtmlUrl":76},"scripts\u002Fgenerate_skeleton.sh",15695,"https:\u002F\u002Fgithub.com\u002Flzy18001500226\u002FMoSim\u002Fblob\u002Fmain\u002FReferences\u002FAgent\u002FWorkflow\u002Fokwinds\u002Fmiscellany\u002Fagent\u002Fskills\u002Fcodebase-spec-extractor\u002Fscripts\u002Fgenerate_skeleton.sh",{"path":78,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":79,"sourceHtmlUrl":80},"scripts\u002Finventory_elements.sh",10526,"https:\u002F\u002Fgithub.com\u002Flzy18001500226\u002FMoSim\u002Fblob\u002Fmain\u002FReferences\u002FAgent\u002FWorkflow\u002Fokwinds\u002Fmiscellany\u002Fagent\u002Fskills\u002Fcodebase-spec-extractor\u002Fscripts\u002Finventory_elements.sh",{"path":82,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":83,"sourceHtmlUrl":84},"scripts\u002Fverify_coverage.sh",4722,"https:\u002F\u002Fgithub.com\u002Flzy18001500226\u002FMoSim\u002Fblob\u002Fmain\u002FReferences\u002FAgent\u002FWorkflow\u002Fokwinds\u002Fmiscellany\u002Fagent\u002Fskills\u002Fcodebase-spec-extractor\u002Fscripts\u002Fverify_coverage.sh",{"path":86,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":87,"sourceHtmlUrl":88},"scripts\u002Fverify_implementation.sh",4999,"https:\u002F\u002Fgithub.com\u002Flzy18001500226\u002FMoSim\u002Fblob\u002Fmain\u002FReferences\u002FAgent\u002FWorkflow\u002Fokwinds\u002Fmiscellany\u002Fagent\u002Fskills\u002Fcodebase-spec-extractor\u002Fscripts\u002Fverify_implementation.sh",[90,100,108,116,124,132],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":94,"licenseFileUrl":95,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":99},"01M78RK6JGRPTD3TDSMTQWDQ9P","skill-installer","Install Codex skills into $CODEX_HOME\u002Fskills from a curated list or a GitHub repo path. Use when a user asks to list installable skills, install a curated skill, or install a skill from another repo (including private repos).","Apache-2.0","https:\u002F\u002Fgithub.com\u002Flzy18001500226\u002FMoSim\u002Fblob\u002Fmain\u002Fsrc\u002FAgent\u002Fcodex-main\u002Fcodex-rs\u002Fskills\u002Fsrc\u002Fassets\u002Fsamples\u002Fskill-installer\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Flzy18001500226\u002FMoSim\u002Fblob\u002Fmain\u002Fsrc\u002FAgent\u002Fcodex-main\u002Fcodex-rs\u002Fskills\u002Fsrc\u002Fassets\u002Fsamples\u002Fskill-installer\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":101,"name":102,"nameZh":6,"description":103,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":94,"licenseFileUrl":104,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":99},"01M78RK29KVRDQXSMVZX1GQTJN","skill-creator","Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Codex's capabilities with specialized knowledge, workflows, or tool integrations.","https:\u002F\u002Fgithub.com\u002Flzy18001500226\u002FMoSim\u002Fblob\u002Fmain\u002Fsrc\u002FAgent\u002Fcodex-main\u002Fcodex-rs\u002Fskills\u002Fsrc\u002Fassets\u002Fsamples\u002Fskill-creator\u002Flicense.txt","https:\u002F\u002Fgithub.com\u002Flzy18001500226\u002FMoSim\u002Fblob\u002Fmain\u002Fsrc\u002FAgent\u002Fcodex-main\u002Fcodex-rs\u002Fskills\u002Fsrc\u002Fassets\u002Fsamples\u002Fskill-creator\u002FSKILL.md",[],[],{"skillNo":109,"name":110,"nameZh":6,"description":111,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":94,"licenseFileUrl":112,"sourceHtmlUrl":113,"categories":114,"keywords":115,"publishedAt":99},"01M78RJPF3210Y5DA9VJ6JMMG6","openai-docs","Use for Codex models\u002Fpricing, scheduled tasks, skills, settings, setup, troubleshooting, customization, automations, and self-knowledge—including 'you,' 'your,' 'this app,' or 'this coding agent' when they refer to Codex—and for OpenAI APIs\u002Fproducts and ChatGPT Work. Also use for model choice\u002Fmigration, prompting, SDKs, Responses, Realtime, agents, evals, and Chat\u002FWork\u002FCodex comparisons. Do not use for generic app\u002Fsoftware tasks that merely mention Codex.","https:\u002F\u002Fgithub.com\u002Flzy18001500226\u002FMoSim\u002Fblob\u002Fmain\u002Fsrc\u002FAgent\u002Fcodex-main\u002Fcodex-rs\u002Fskills\u002Fsrc\u002Fassets\u002Fsamples\u002Fopenai-docs\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Flzy18001500226\u002FMoSim\u002Fblob\u002Fmain\u002Fsrc\u002FAgent\u002Fcodex-main\u002Fcodex-rs\u002Fskills\u002Fsrc\u002Fassets\u002Fsamples\u002Fopenai-docs\u002FSKILL.md",[],[],{"skillNo":117,"name":118,"nameZh":6,"description":119,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":94,"licenseFileUrl":120,"sourceHtmlUrl":121,"categories":122,"keywords":123,"publishedAt":99},"01M78RJH7X67C5AY8ZVS7RQNWJ","imagegen","Generate or edit raster images when the task benefits from AI-created bitmap visuals such as photos, illustrations, textures, sprites, mockups, or transparent-background cutouts. Use when Codex should create a brand-new image, transform an existing image, or derive visual variants from references, and the output should be a bitmap asset rather than repo-native code or vector. Do not use when the task is better handled by editing existing SVG\u002Fvector\u002Fcode-native assets, extending an established icon or logo system, or building the visual directly in HTML\u002FCSS\u002Fcanvas.","https:\u002F\u002Fgithub.com\u002Flzy18001500226\u002FMoSim\u002Fblob\u002Fmain\u002Fsrc\u002FAgent\u002Fcodex-main\u002Fcodex-rs\u002Fskills\u002Fsrc\u002Fassets\u002Fsamples\u002Fimagegen\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Flzy18001500226\u002FMoSim\u002Fblob\u002Fmain\u002Fsrc\u002FAgent\u002Fcodex-main\u002Fcodex-rs\u002Fskills\u002Fsrc\u002Fassets\u002Fsamples\u002Fimagegen\u002FSKILL.md",[],[],{"skillNo":125,"name":126,"nameZh":6,"description":127,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":94,"licenseFileUrl":128,"sourceHtmlUrl":129,"categories":130,"keywords":131,"publishedAt":99},"01M78RBBAYMJ6T3ZMAYHCFM6G7","skill-creator-cc","Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, update or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.","https:\u002F\u002Fgithub.com\u002Flzy18001500226\u002FMoSim\u002Fblob\u002Fmain\u002FReferences\u002FAgent\u002FWorkflow\u002Fokwinds\u002Fmiscellany\u002Fagent\u002Fskills\u002Fskill-creator-cc\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Flzy18001500226\u002FMoSim\u002Fblob\u002Fmain\u002FReferences\u002FAgent\u002FWorkflow\u002Fokwinds\u002Fmiscellany\u002Fagent\u002Fskills\u002Fskill-creator-cc\u002FSKILL.md",[],[],{"skillNo":133,"name":134,"nameZh":6,"description":135,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":136,"sourceHtmlUrl":137,"categories":138,"keywords":139,"publishedAt":18},"01M76VV9V2R9FZTVGMJZV7Y996","prd-writing-guide","Write complete, unambiguous PRDs that development teams can implement without guesswork. Includes requirement discovery framework, structured documentation methodology, completeness checklists, and common pitfall avoidance. Use when: writing new PRDs, reviewing PRD drafts, validating requirement completeness, preparing for engineering handoff. Triggers: 'write PRD', '写PRD', '产品需求文档', '需求文档', '需求规格', '需求评审', '完善需求', 'create requirements doc', 'product requirements', 'feature spec', 'requirements document'. Anti-triggers: 'technical design doc', 'architecture design', 'implementation plan', 'API design', '架构设计', '技术方案', '实现方案', '接口设计'.","https:\u002F\u002Fgithub.com\u002Flzy18001500226\u002FMoSim\u002Fblob\u002Fmain\u002FReferences\u002FAgent\u002FWorkflow\u002Fokwinds\u002Fmiscellany\u002Fagent\u002Fskills\u002Fprd-writing-guide\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Flzy18001500226\u002FMoSim\u002Fblob\u002Fmain\u002FReferences\u002FAgent\u002FWorkflow\u002Fokwinds\u002Fmiscellany\u002Fagent\u002Fskills\u002Fprd-writing-guide\u002FSKILL.md",[],[]]