v0.3.0 · Built on Anthropic's AI-Native SDLC PlaybookDựa trên AI-Native SDLC Playbook của Anthropic

Start Every Project the AI-Native Way Khởi động mọi dự án theo chuẩn AI-Native

One command — npx, curl or PowerShell — scaffolds the six-stage loop: intent, spec, plan, tests, review, monitoring, plus the Claude Code agents, skills and guardrail hooks that run it. Same output on macOS, Linux and Windows. Một lệnh — npx, curl hoặc PowerShell — dựng sẵn vòng lặp sáu giai đoạn: intent, spec, plan, test, review, monitoring, kèm bộ agent, skill và hook bảo vệ của Claude Code. Kết quả giống hệt nhau trên macOS, Linux và Windows.

$ bash init.sh my-app -w node,python@3.12
[info] init-ai-sdlc 0.3.0
[info] Project / Du an: my-app
[info] Node:   latest · Python: 3.12
[ok]   CLAUDE.md
[ok]   intent/_TEMPLATE.md
[ok]   specs/_TEMPLATE.md
[ok]   plans/_TEMPLATE.md
[ok]   monitoring/bands.yaml
[ok]   .claude/agents/planner.md # + coder, tester, reviewer, verifier
[ok]   .claude/skills/feature/SKILL.md
[ok]   .claude/hooks/guard-bash.sh
[ok]   .github/workflows/agent-evals.yml
[ok]   package.json (node latest)
[ok]   pyproject.toml (python 3.12)
[ok]   Makefile # make check = lint + test
[ok]   AGENTS.md # read by every coding agent
[ok]   AI-Native SDLC scaffold ready # 49 files
$ claude # then: /intent <your idea>
  • macOS
  • Linux
  • Windows
  • bash
  • PowerShell
  • Node
  • Python
  • Go
  • Java
  • Claude Code
  • npx
The LoopVòng lặp

Six Stages, Six ArtifactsSáu giai đoạn, sáu artifact

Every stage commits one version-controlled file that the next stage reads. Agents do the work; you stay above the loop at two gates. Mỗi giai đoạn commit một file vào git để giai đoạn sau đọc. Agent làm việc; bạn đứng trên vòng lặp ở hai cổng duyệt.

Stage 1 · PlanGiai đoạn 1 · Plan

Capture the IntentGhi lại intent

Turn an idea, ticket or incident into something concrete: problem, outcome, affected users, constraints, open questions. No design, no code yet.Biến ý tưởng, ticket hay sự cố thành thứ cụ thể: vấn đề, kết quả mong muốn, người dùng liên quan, ràng buộc, câu hỏi mở. Chưa thiết kế, chưa code.

RunLệnh
/intent Add password reset
WritesTạo ra
intent/<slug>.md
WhoAi làm
You + Claude, brainstormingBạn + Claude cùng brainstorm

Files from one commandFile từ một lệnh duy nhất

49

39 with no runtime, 49 with Node and Python, 55 with all four — including a Makefile, AGENTS.md and tests that actually run. Byte-for-byte identical from bash and PowerShell; re-running skips what exists unless you pass --force.39 file khi không chọn runtime, 49 file với Node và Python, 55 file với cả bốn — gồm Makefile, AGENTS.md và test chạy thật. Bash và PowerShell cho ra giống hệt từng byte; chạy lại sẽ bỏ qua file đã có, trừ khi dùng --force.

Subagents, one job eachSubagent, mỗi con một việc

5

planner · coder · tester · reviewer · verifier

Human gates, never skippedCổng duyệt của người, không bỏ qua

2

Approve the plan. Approve the commit. Nothing is pushed for you.Duyệt plan. Duyệt commit. Không có gì tự push.

InstallCài đặt

Pin Your Stack in One LineGhim stack của bạn trong một dòng

Pick your runtimes and copy the command. The release tag lives in the URL, so the same version always produces the same scaffold. Chọn runtime rồi sao chép lệnh. Tag phiên bản nằm ngay trong URL, nên cùng một phiên bản luôn cho ra cùng một bộ khung.

Short URL, always the latest release on main. For a build that can never change, switch to the pinned tag. URL ngắn, luôn lấy bản mới nhất trên main. Muốn kết quả không bao giờ đổi thì chuyển sang bản ghim theo tag.

The script pins versions only (.nvmrc, .python-version, .tool-versions, manifests). Install runtimes with mise install, nvm or asdf. Script chỉ ghim phiên bản (.nvmrc, .python-version, .tool-versions, manifest). Cài runtime bằng mise install, nvm hoặc asdf.

  1. 01

    Run the scriptChạy script

    Needs only bash or PowerShell and git. jq is used later by the hooks.Chỉ cần bash hoặc PowerShell và git. jq được hook dùng về sau.

  2. 02

    Fill in CLAUDE.mdĐiền CLAUDE.md

    The Commands section (build, test, lint) is what lets agents verify their own work.Mục Commands (build, test, lint) là thứ giúp agent tự kiểm chứng công việc.

  3. 03

    Start the loopBắt đầu vòng lặp

    Open Claude Code in the folder and run /intent <your idea>.Mở Claude Code trong thư mục và chạy /intent <ý tưởng>.

New in v0.3Mới ở v0.3

Already Have a Project?Đã có project rồi?

Run it in the project root with --adopt. You get the agents, skills, hooks and stage folders — and nothing of yours is overwritten.Chạy ở thư mục gốc project với --adopt. Bạn nhận agent, skill, hook và thư mục các giai đoạn — không file nào của bạn bị ghi đè.

  • CLAUDE.md, AGENTS.md, .gitignore keep every line; one marked block is added at the end.CLAUDE.md, AGENTS.md, .gitignore giữ nguyên từng dòng; chỉ thêm một khối có đánh dấu ở cuối.
  • .claude/settings.json is merged, never replaced — the original stays as .bak..claude/settings.json được gộp, không bị thay — bản gốc giữ ở .bak.
  • Your test and lint commands are detected and handed to the agent.Lệnh test và lint của bạn được tự dò và giao cho agent.
  • No runtime stack, no README, no CI. Run it again and only the block refreshes.Không stack runtime, không README, không CI. Chạy lại thì chỉ khối đó được cập nhật.

1 · Preview every change1 · Xem trước mọi thay đổi

npx ai-sdlc-starter@latest --adopt --dry-run

2 · Apply it2 · Áp dụng

npx ai-sdlc-starter@latest --adopt

No Node? Use the builder above with Existing project ticked for the curl or PowerShell form.Không có Node? Dùng bộ tạo lệnh ở trên, tick Project có sẵn để lấy lệnh curl hoặc PowerShell.

What You GetBạn nhận được gì

A Home for Every ArtifactMỗi artifact một chỗ đứng

A folder per stage, templates with bilingual guidance, and the Claude Code kit that operates the loop. Mỗi giai đoạn một thư mục, template kèm hướng dẫn song ngữ, và bộ Claude Code vận hành vòng lặp.

your-project/
├── intent/            # 1 Plan     intent.md
├── specs/             # 2 Design   spec.md
├── plans/             # 3 Build    plan.md
├── src/  tests/       #            code + tests
├── evals/             # 4 Test     agent evals
├── REVIEW.md          # 5 Deploy   review policy
├── monitoring/        # 6 Maintain bands.yaml
├── docs/              #   guide, ADRs, runbooks
├── .github/workflows/ #   evals + review CI
├── CLAUDE.md          #   agent day-one context
├── AGENTS.md          #   same contract, every agent
├── Makefile           #   make check = the gate
└── .claude/
    ├── agents/        # 5 subagents
    ├── skills/        # /intent /spec /feature
    ├── hooks/         # 4 guardrails
    └── settings.json  # allow / deny + hooks

AgentsAgent

  • planner
  • coder
  • tester
  • reviewer
  • verifier

Each starts empty and gets the artifact path — no hidden context, no "see above".Mỗi agent bắt đầu trống và nhận đường dẫn artifact — không ngữ cảnh ẩn, không "xem ở trên".

SkillsSkill

  • /intent
  • /spec
  • /feature
  • secure-api-review

/feature is the orchestrator: plan → code → test → review, with both gates./feature là nhạc trưởng: plan → code → test → review, kèm cả hai cổng duyệt.

Guardrail HooksHook bảo vệ

  • guard-bashblocks git push, rm -rf, sudo, DROP TABLEchặn git push, rm -rf, sudo, DROP TABLE
  • formatauto-formats every edited filetự format mọi file vừa sửa
  • protect-testslocks test files during a fixkhóa file test khi đang sửa lỗi
  • production-gateprod deploys need a named approvaldeploy production cần người duyệt có tên

They run for the main session and every subagent.Chạy cho phiên chính và mọi subagent.

WorkflowQuy trình

Your First Feature in Three CommandsTính năng đầu tiên chỉ với ba lệnh

From idea to a reviewed local commit. Agents loop on their own within bounded rounds; the decisions stay yours. Từ ý tưởng tới một commit đã được review trên máy. Agent tự lặp trong số vòng giới hạn; quyết định vẫn thuộc về bạn.

  1. > /intent Add password reset via email

    Claude asks what an analyst would ask, then writesClaude hỏi như một analyst, rồi viết intent/reset-password.md

  2. > /spec intent/reset-password.md

    Requirements, design, acceptance criteria and flagged risks inYêu cầu, thiết kế, tiêu chí chấp nhận và rủi ro được đánh dấu trong specs/reset-password.md

  3. > /feature specs/reset-password.md

    The planner writesPlanner viết plans/reset-password.md

  4. Gate 1 — You approve the planCổng 1 — Bạn duyệt plan

    Approve, request changes, or cancel. Nothing is coded before this.Duyệt, yêu cầu sửa, hoặc hủy. Chưa có dòng code nào trước bước này.

  5. coder tester (≤ 3) reviewer (≤ 2)

    Runs on its own branch. Every phase appends a row to the plan's pipeline log.Chạy trên nhánh riêng. Mỗi pha ghi thêm một dòng vào pipeline log của plan.

  6. Gate 2 — You approve the commitCổng 2 — Bạn duyệt commit

    A conventional commit lands on feat/reset-password, with a ready-to-paste PR description. You push.Một conventional commit trên feat/reset-password, kèm mô tả PR sẵn để dán. Bạn tự push.

RoadmapLộ trình

Run It Anywhere, Pinned to a VersionChạy ở đâu cũng được, ghim theo phiên bản

ShippedĐã có

npx ai-sdlc-starter

On npm, plus the curl and PowerShell one-liners. Every release is tagged, so a pinned command always produces the same scaffold.Đã lên npm, cùng lệnh curl và PowerShell. Mỗi bản phát hành đều có tag, nên lệnh đã ghim luôn cho ra cùng một bộ khung.

NextTiếp theo

Guardrails that survive a skipped hookHàng rào không thể lách

Secret scanning in both the pre-commit hook and CI, a dependency policy, a Stop hook that blocks a turn while make test is red, and a dev container.Quét secret ở cả pre-commit lẫn CI, chính sách cập nhật dependency, Stop hook chặn kết thúc lượt khi make test còn đỏ, và dev container.

LaterVề sau

Homebrew, pipx, CommunityHomebrew, pipx, cộng đồng

More installers, more runtimes, and stages and skills suggested by the people using it.Thêm kênh cài đặt, thêm runtime, cùng các stage và skill do chính người dùng đề xuất.

FAQ

Frequently Asked QuestionsCâu hỏi thường gặp

Something missing?Chưa thấy câu trả lời? Ask on GitHubHỏi trên GitHub

Is this an official Anthropic product?Đây có phải sản phẩm chính thức của Anthropic?
No. It is an independent, MIT-licensed starter that follows the structure of Anthropic's published AI-Native SDLC Playbook.Không. Đây là starter độc lập, giấy phép MIT, đi theo cấu trúc của AI-Native SDLC Playbook mà Anthropic đã công bố.
Does it install Node, Python or Go?Nó có cài Node, Python hay Go không?
No. It only pins versions: .nvmrc, .python-version, .tool-versions and the matching manifest. Install runtimes with mise, nvm or asdf. This keeps the one-liner dependency-free.Không. Nó chỉ ghim phiên bản: .nvmrc, .python-version, .tool-versions và manifest tương ứng. Cài runtime bằng mise, nvm hoặc asdf. Nhờ vậy lệnh một dòng không phụ thuộc gì.
Can I use it on a project I already have?Dùng được cho project đã có sẵn không?
Yes: add --adopt. Without it, the script refuses to run in a folder that already holds a project, so a mistyped command cannot litter your repo. Try --adopt --dry-run first to see every change.Được: thêm --adopt. Không có cờ này, script từ chối chạy trong thư mục đã có project, nên gõ nhầm lệnh cũng không làm bẩn repo. Nên chạy --adopt --dry-run trước để xem mọi thay đổi.
Is it safe to run twice?Chạy lại lần hai có an toàn không?
Yes. Existing files are skipped unless you pass --force (-Force on Windows).Có. File đã tồn tại sẽ được bỏ qua, trừ khi bạn dùng --force (-Force trên Windows).
Can the agents push or deploy on their own?Agent có tự push hay deploy được không?
No. git push is denied in settings.json and blocked again by the guard-bash hook. The pipeline commits locally only after Gate 2, and production deploys need a named approval.Không. git push bị cấm trong settings.json và bị hook guard-bash chặn thêm lần nữa. Pipeline chỉ commit trên máy sau Cổng 2, và deploy production cần người duyệt có tên.
Why is the version tag in the URL?Vì sao tag phiên bản nằm trong URL?
A tag never changes, so v0.1.0 gives every teammate and every CI run the exact same scaffold. Upgrade by changing the tag.Tag không bao giờ đổi, nên v0.1.0 cho mọi thành viên và mọi lần chạy CI cùng một bộ khung. Muốn nâng cấp, chỉ cần đổi tag.
Do I need Node to use it?Có bắt buộc cài Node không?
Only for the npx form. The curl and PowerShell one-liners run the scripts directly, and the scripts themselves need nothing but bash or PowerShell and git.Chỉ cần Node nếu bạn dùng npx. Lệnh curl và PowerShell chạy thẳng script, mà bản thân script chỉ cần bash hoặc PowerShell và git.
Does it work on Windows?Có chạy trên Windows không?
Yes — PowerShell 5+ or pwsh 7+. The PowerShell script writes the same files as the bash one, byte for byte (UTF-8, LF).Có — PowerShell 5+ hoặc pwsh 7+. Script PowerShell tạo đúng các file như bản bash, giống từng byte (UTF-8, LF).
CommunityCộng đồng

Help Shape the LoopCùng hoàn thiện vòng lặp

Report a bug, suggest a stage or a skill, or share how your team runs it.Báo lỗi, đề xuất stage hay skill mới, hoặc chia sẻ cách team bạn vận hành.