{"id":50925532,"url":"https://github.com/zhao5271/spec-driven-coding","last_synced_at":"2026-06-16T22:31:11.058Z","repository":{"id":349901830,"uuid":"1204440583","full_name":"zhao5271/spec-driven-coding","owner":"zhao5271","description":"文档先行的 AI 渐进式编程，结合了阿里的 spec 和 superpowers 的部分 skill","archived":false,"fork":false,"pushed_at":"2026-04-08T03:16:58.000Z","size":92,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-08T04:24:23.133Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zhao5271.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-08T02:30:14.000Z","updated_at":"2026-04-08T03:20:21.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/zhao5271/spec-driven-coding","commit_stats":null,"previous_names":["zhao5271/spec-driven-coding"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/zhao5271/spec-driven-coding","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhao5271%2Fspec-driven-coding","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhao5271%2Fspec-driven-coding/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhao5271%2Fspec-driven-coding/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhao5271%2Fspec-driven-coding/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zhao5271","download_url":"https://codeload.github.com/zhao5271/spec-driven-coding/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhao5271%2Fspec-driven-coding/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34426738,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-16T02:00:06.860Z","response_time":126,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-06-16T22:31:06.146Z","updated_at":"2026-06-16T22:31:11.051Z","avatar_url":"https://github.com/zhao5271.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Spec-Driven Coding\n\n`spec-driven-coding` is a spec-first workflow for Codex that keeps planning in files instead of chat memory.\n\nUse it when you want a repeatable flow like:\n\n`spec.md -\u003e tasks.md -\u003e implementation -\u003e verification`\n\nIt is designed to help you:\n\n- initialize a repository with a reusable `code_copilot/` workflow package\n- create a change package before coding\n- keep `spec.md` and `tasks.md` as the source of truth during execution\n- recover context cleanly when a session resumes\n\n## Quick Start\n\nInstall the main skill from GitHub:\n\n```bash\nnpx skills add zhao5271/spec-driven-coding -g -y\n```\n\nInstall the full bundle from this repository:\n\n```bash\ngit clone git@github.com:zhao5271/spec-driven-coding.git\ncd spec-driven-coding\n./install.sh\n```\n\nChoose the root skill install if you only want the main workflow.\n\nChoose the bundle install if you also want the companion skills included in this repository.\n\n## First Prompt\n\nInitialize a repository:\n\n```text\n用 $spec-driven-coding 为这个仓库初始化 code_copilot\n```\n\nStart a new change:\n\n```text\n用 $spec-driven-coding 先为“用户批量导入”创建 change package，再写 spec 和 tasks\n```\n\nAsk for help:\n\n```text\n$spec-driven-coding --help\n```\n\n## Workflow Cheatsheet\n\nThe short command sequence is:\n\n`建包 -\u003e 写规 -\u003e 开整 -\u003e 续做 -\u003e 校验 -\u003e 收尾`\n\n- `建包`: initialize `code_copilot/` for the current repository\n- `写规`: create a change and draft `spec.md` and `tasks.md`\n- `开整`: continue implementation from the approved plan\n- `续做`: scan existing changes and recover execution context\n- `校验`: move the change into verification and check close readiness\n- `收尾`: close the change package\n\n## What This Creates\n\nWhen you initialize a repository, the workflow creates a `code_copilot/` package with:\n\n- `rules/` for stable project rules\n- `knowledge/` for durable project knowledge\n- `agents/` for reusable execution guidance\n- `changes/templates/` for change-package templates\n\nWhen you start a real feature or bugfix, the workflow creates:\n\n- `change.toml`\n- `spec.md`\n- `tasks.md`\n- `log.md`\n- `decisions.md`\n- `review.md`\n\nThe working rule is simple:\n\n- no spec before code\n- `spec.md` is the plan\n- `tasks.md` is the execution snapshot\n- `log.md` is the chronological record\n\n## Included Skills\n\nMain workflow:\n\n- `spec-driven-coding`\n\nCompanion skills in the full bundle:\n\n- `frontend-design` for UI-heavy work\n- `api-design-principles` for API and contract work\n- `postgresql-table-design` for PostgreSQL schema work\n- `test-driven-development` for new implementation and refactors\n- `systematic-debugging` for bug investigation\n- `verification-before-completion` for finish-gate validation\n- `requesting-code-review` for risky changes\n\n## Core Scripts\n\nThe root skill ships these workflow scripts:\n\n```bash\npython3 scripts/scaffold_package.py --target /path/to/repo --project-name my-app\npython3 scripts/create_change.py --target /path/to/repo --name add-bulk-import --title \"Add bulk import flow\"\npython3 scripts/approve_change.py --target /path/to/repo --change add-bulk-import\npython3 scripts/update_change_status.py --target /path/to/repo --change add-bulk-import --status in_progress --current-task T1\npython3 scripts/change_catchup.py --target /path/to/repo --change add-bulk-import\npython3 scripts/validate_change.py --target /path/to/repo --change add-bulk-import\npython3 scripts/close_change.py --target /path/to/repo --change add-bulk-import\n```\n\n## Install Options\n\nTwo supported ways to use this project:\n\n- `npx skills add zhao5271/spec-driven-coding -g -y`\n  This installs the root workflow skill from GitHub.\n- `git clone ... \u0026\u0026 ./install.sh`\n  This installs the full bundle, including companion skills.\n\nIf you want a pinned release, use a Git tag or a specific repository revision in your own install workflow.\n\nMore detail is in [references/public-install-and-release.md](references/public-install-and-release.md).\n\n## FAQ\n\n### Does this require a specific tech stack?\n\nNo. The workflow is intentionally generic. It works best when you record the real stack details in the generated `rules/` files.\n\n### Do I need the full bundle?\n\nNo. If you only want the main planning workflow, install the root skill. Use the full bundle if you want the companion skills ready to go.\n\n### Can I use it with other execution-focused skills?\n\nYes. That is the intended model. `spec-driven-coding` owns planning, while execution-focused skills improve testing, debugging, verification, or review.\n\n### What should I type first?\n\nUsually one of these:\n\n```text\n用 $spec-driven-coding 为这个仓库初始化 code_copilot\n```\n\n```text\n用 $spec-driven-coding 先写 spec 和 tasks，再开始改这个功能\n```\n\n### Where can I read more?\n\n- `references/workflow.md`\n- `references/spec-checklists.md`\n- `references/task-splitting-examples.md`\n- `references/stack-conventions.md`\n- `references/skill-routing.md`\n- `references/skill-decision-table.md`\n- `references/superpowers-integration.md`\n- `references/中文说明.md`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhao5271%2Fspec-driven-coding","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzhao5271%2Fspec-driven-coding","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhao5271%2Fspec-driven-coding/lists"}