Skill v1.0.0
currentAutomated scan100/100name: onboard-agentic-dev-flow description: "Writes or aligns an existing repo's agent and human workflow docs: AGENTS.md and CLAUDE.md with one source of truth, a minimal human development-flow section, worktree-first git and low-churn commit guidance, direct-integration notes where applicable, and distilled coding rules, 规则, 习惯, style, and workflow conventions. Use for that documentation update alone; for end-to-end repo onboarding, use swe:onboard-repo." metadata: version: "1.0.0"
Onboard Agentic Dev Flow
Version: 1.3.0
Prepare a project so humans and agents share a small, explicit development workflow. Preserve the repo's existing habits first, and add generic defaults only where the project is silent.
For a full repo onboarding workflow that starts with repository setup discovery, use swe:onboard-repo.
Workflow
- Inspect before writing.
- Read existing
AGENTS.md,CLAUDE.md,README.md, docs indexes, feature
docs, .cursor/rules/, .github/, Makefile, package manifests, and lint or formatter configs.
- Search for
coding rules,conventions,style,workflow,lint,
format, 规则, 规范, and 习惯.
- Check git status and treat existing uncommitted changes as user-owned.
- Resolve the canonical remote and default branch, then look for documented
review, branch-protection, and delivery conventions. Base the workflow on that documentation, never on the remote account name or repository visibility.
- Decide the instruction source of truth.
- For a fresh onboarding, put shared agent instructions in
AGENTS.md. - Keep
CLAUDE.mdas a minimal compatibility bridge toAGENTS.md, unless
the repo already has a richer CLAUDE.md that should remain canonical.
- If
CLAUDE.mdremains canonical, makeAGENTS.mdpoint to it and keep
long rules in one file only.
- Create or update
AGENTS.md.
- Include only durable repo guidance: project context, source-of-truth docs,
git workflow, coding rules, test commands, documentation expectations, and review bar.
- Distill existing coding rules and habits into explicit bullets. Prefer
observed repo facts over broad defaults.
- Add a worktree-first git rule:
Prefer git worktrees for parallel or unrelated agent work so multiple agents can develop concurrently without colliding.
- Add a low-churn commit rule: commits are explicit delivery boundaries, not
per-step checkpoints; default to one cohesive commit for one requested outcome and split only for independently reviewable and revertible work.
- When existing repo policy or the user establishes a solo-maintainer direct
integration flow, document that task branches stay local, PRs are optional rather than the default, and explicitly authorized delivery uses swe:land-work to rebase onto the updated default branch, fast-forward it locally, and push it. State that default-branch integration is serialized across agents.
- State that ordinary task completion does not authorize commits, pushes,
integration, worktree removal, or branch deletion.
- Keep the file short enough that future agents will actually read it.
- Link
CLAUDE.md.
- If
AGENTS.mdis canonical, makeCLAUDE.mda tiny bridge such as:
``md AGENTS.md ``
- If
CLAUDE.mdis canonical, makeAGENTS.mda tiny bridge such as:
``md CLAUDE.md ``
- When both files already exist, preserve meaningful project-specific rules
and normalize the bridge only if that reduces duplication.
- Add or align a minimal human development flow.
- First find where the repo already guides the human dev flow. Check likely
places such as README.md, docs/README.md, docs/development.md, docs/contributing.md, CONTRIBUTING.md, DEVELOPMENT.md, .github/CONTRIBUTING.md, and feature/spec docs indexes.
- If a human dev-flow guide exists, update that file in place with the
minimal missing agentic flow notes rather than adding a duplicate section elsewhere.
- If only
README.mdexists, add a conciseDevelopment Flowsection
instead of rewriting the whole file.
- If no suitable human-facing guide exists, create a minimal
README.md
with setup, local run, test, worktree workflow, and where to read agent instructions.
- Use actual commands discovered from the repo. If a command is unknown, say
the repo does not define it yet rather than inventing one.
- Validate the onboarding.
- Confirm
AGENTS.md,CLAUDE.md, and the chosen human dev-flow guide
exist.
- Confirm links or bridge references point to existing files.
- If recommending a project-local worktree directory such as
.worktrees/,
ensure it is ignored before agents use it.
- Run lightweight markdown or diff checks when available, such as
git diff --check.
Minimal AGENTS.md Shape
Use this shape when creating a fresh file, trimming sections that don't apply:
# Agent Instructions## Compatibility-`CLAUDE.md` is the Claude Code bridge for this agent instruction file.## Project Context-Read `README.md` or the repo's existing development guide for the humandevelopment flow.-Keep docs and code aligned when behavior, APIs, data shape, or workflow changes.## Git Workflow-Prefer git worktrees for parallel or unrelated agent work.-Treat existing uncommitted changes as user-owned unless told otherwise.-Treat commits as explicit delivery boundaries, not progress checkpoints. Donot commit after every file, subtask, test, or agent turn, and do not infercommit or push permission from ordinary task completion.-Default to one cohesive commit for one requested outcome. Split only when theparts are independently reviewable and revertible or the repo requires it.-Prefer rebase-based conflict resolution unless the repo requires merges.-Follow the documented review-based or direct-integration delivery mode; donot infer permission to commit, push, merge, or clean up from task completion.## Coding Rules-Follow the repo's existing lint, format, naming, and review conventions.-[Add distilled project-specific rules here.]## Verification-[Add actual local test, lint, build, or smoke commands here.]
Minimal Human Dev-Flow Section
Add this to the repo's existing human development guide. Use README.md only when it is the best or only guide.
## Development Flow-Read `AGENTS.md` before using an agent on this repo.-Use a git worktree for parallel or unrelated agent work.-Commit only at an explicit delivery or handoff boundary; keep one coherentrequested outcome in one commit by default.-Setup: `[actual setup command or "not documented yet"]`-Run locally: `[actual run command or "not documented yet"]`-Verify: `[actual test/lint/build command or "not documented yet"]`
Completion Report
Report the files changed, the existing rules that were captured, the documented commit cadence, any missing commands the repo still needs to document, and whether the worktree guidance is ready to use.