Install
$ agentstack add skill-jamesw0203-ai-code-governance-skill-ai-code-governance-skill ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
About
AI Code Governance
Use this skill to turn an AI coding agent into a project maintainer: inspect first, reuse existing architecture, make the smallest useful change, verify it, and leave the project easier to continue.
This skill applies both when starting a new project and when joining an existing project midstream.
Choose The Mode
- Project adoption: Use when the user asks to add, install, initialize, or improve AI coding governance for a repo, including Codex or Claude Code setup.
- Engineering task: Use when the user asks for feature work, bug fixes, refactors, reviews, dependency changes, build/tooling changes, or cleanup of AI-generated code.
- If both apply, do project adoption first, then do the engineering task.
Project Adoption Workflow
When adding this skill to an existing project, do not assume the templates describe reality. Build the rules from the actual codebase.
- Inspect the current repo:
README, package/build config, test config, source tree, existingAGENTS.md,CLAUDE.md,CODEX.md, anddocs/. - Identify authoritative implementations: request/client layer, routing, state, UI primitives, hooks/composables, services, utilities, types, design tokens, tests, and scripts.
- Create or update project rules:
AGENTS.md: shared coding-agent rules.CLAUDE.md: Claude Code entry point; point to or importAGENTS.md.CODEX.md: Codex entry point; point toAGENTS.md.docs/architecture.md: architecture contract and layer boundaries.docs/project-index.md: real reusable modules and ownership map.docs/dependency-policy.md: approved dependencies and prohibited duplicates.docs/coding-standards.md: project-specific coding rules.docs/agent-workflows.md: task, review, refactor, and dependency workflows.docs/review-checklist.md: human review and agent self-check checklist.docs/task-template.md: reusable task prompt template for governed agent work.
- Replace template examples with real project paths. If a fact is unknown, mark it as
TBDorneeds confirmation; never present a guessed path as authoritative. - If governance files already exist, merge conservatively. Preserve project-specific rules and remove only clear duplication.
- Recommend quality scripts, but do not modify
package.jsonor lockfiles unless the user approves the dependency/tooling change. - End with an adoption report: files created/updated, discovered reusable modules, unresolved unknowns, recommended next checks.
For Claude Code project-level installation, the same skill can also live at .claude/skills/ai-code-governance/SKILL.md. For personal Claude Code use, install it at ~/.claude/skills/ai-code-governance/SKILL.md.
Engineering Task Workflow
- Read available project rules:
AGENTS.md,CLAUDE.md,CODEX.md,docs/architecture.md,docs/project-index.md,docs/dependency-policy.md,docs/coding-standards.md, anddocs/agent-workflows.md. - Search before writing. Prefer
rg/rg --filesand inspect existing components, hooks/composables, services, stores, utils, types, styles, tests, and scripts. - Form a concise implementation plan that names the files to reuse and change. If the user explicitly asks for plan-only or approval-first work, stop after the plan. Otherwise proceed with the smallest safe implementation.
- Reuse or extend existing modules. Add a new module only when there is no suitable owner and the new file has one clear responsibility.
- Gate dependency changes. Before modifying
package.jsonor lockfiles, explain why existing tools are insufficient and ask for confirmation. - Keep the change scoped. Do not modify unrelated files, rewrite large modules, or create parallel implementations.
- Verify with the project's available commands. Common checks include
npm run lint,npm run typecheck,npm run test,npm run format,npm run dupcheck,npm run unused, andnpm run check. - Update governance docs when the change creates or removes an authoritative reusable module, public workflow, dependency decision, or architecture rule.
- End with a change report: what changed, what was reused, dependency impact, verification results, and remaining risks.
Non-Negotiables
- Do not duplicate an existing component, hook/composable, service, store, utility, type, request wrapper, date library, validation layer, modal/button/loading/empty component, or state-management approach.
- Do not add unapproved dependencies.
- Do not keep mock, temporary, fallback, compatibility, or experimental code unless the user explicitly asked for it.
- Do not bypass checks by weakening lint, type, or test rules.
- Do not claim a command passed if it was not run or does not exist.
- Do not hardcode style values when the project has design tokens or a style system.
Search Checklist
Search using task-specific names plus these generic terms:
component
hook
composable
service
store
utils
helper
type
interface
request
client
api
format
validate
modal
button
loading
empty
error
storage
token
Output Shapes
For approval-first work, use this plan shape:
## Understanding
...
## Existing Implementation
- ...
## Reuse Plan
- ...
## Change Plan
- Modify: ...
- Add: ...
- Remove: ...
## Dependency Impact
No new dependencies. / Needs approval because ...
## Verification
- ...
## Risks
- ...
For completed work, use this summary shape:
## Summary
...
## Files
- Modified: ...
- Added: ...
- Removed: ...
## Reuse
...
## Deduplication
...
## Dependencies
...
## Verification
- ...
## Risks / Next Steps
...
Supporting Resources
templates/: starter project governance files for AGENTS, Claude Code, Codex, docs, review checklists, and task prompts.prompts/: reusable prompts for preflight, implementation, refactor, and review workflows.snippets/: optional quality-check config examples.
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: JamesW0203
- Source: JamesW0203/ai-code-governance-skill
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.