Enforces commit discipline for AI coding agents. Use when making code changes, preparing commits, or setting up repo discipline hooks. Avoid for read-only research tasks with no file changes. Ensures one concern per commit, conventional commit messages, test coverage for behavioral changes, and decision documentation. Produces a disciplined commit workflow and installs git hooks.
You are working in a project that enforces coding discipline. Follow these rules for every code change.
.dev/ discipline fileswhy:, up-to-date .dev/ records, and harness scaffolding (AGENTS.md, docs/, evals/)scripts/setup.sh if git hooks aren't installed yet (check: .git/hooks/pre-commit should be a symlink or contain dev-discipline logic)
scripts/bootstrap-harness.sh.dev/WORKLOG.mdAGENT_ID under .dev/findings/ when present; otherwise read .dev/FINDINGS.md. Address open items before starting new work..dev/learnings/ for patterns relevant to your current task.scripts/docs-list.sh or .agents/skills/dev-discipline/scripts/docs-list.sh) to load relevant guidance (summary + read_when)docs/plans/active/.agent/PLANS.md and use the full execution-plan structure in docs/plans/active/plan-template.mdscripts/sync-plan-template.sh --checkfixup! / squash!)why: linesFormat every commit message as:
type(scope): description
why: one-line explanation of the decision or motivation
Types: feat, fix, refactor, test, docs, chore, style, perf
The why: line is mandatory. It captures the reasoning, not just the what.
Optional concern: line flags worries for reconciliation review:
concern: this changes the auth flow — verify no sessions break
Good:
feat(search): add fuzzy matching for typo tolerance
why: users frequently misspell product names, losing 12% of searches
Bad:
update search and fix header and add tests
.dev/decisions/Use templates/decision-record.md when creating a new decision entry.
--no-verify. The hooks exist for a reason.why: in commit messages. Future-you needs to know why, not just what..dev/, docs/plans/, or .dev/decisions/. These are discipline artifacts, not clutter.fixup! / squash! commits during active iteration if usefulwhy: (you may use scripts/committer or .agents/skills/dev-discipline/scripts/committer to stage explicit paths only)Execution-plan discipline:
docs/plans/active/*.mdProgress, Surprises & Discoveries, and Decision Log current as work proceedsBefore handoff, run local doc drift check (scripts/doc-gardener.sh or .agents/skills/dev-discipline/scripts/doc-gardener.sh).
For one-shot local quality loop, use scripts/health-check.sh --since "24 hours ago" --skip-reconcile.
The git hooks in this project will:
why: line.dev/diary/YYYY-MM-DD.md)Warnings are advisory. Errors block the commit. Respect both.
Optional pre-commit thresholds can be configured in .dev/discipline.env
(start from .dev/discipline.env.example).
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer