AliYmn/claude-structured
An opinionated project template for Claude Code — persistent context, autonomous workflows, self-improving agents.
ARCHETYPE
Automator
Hooks on every lifecycle event: format, lint, notify, log.
Copy this rig
# review before running: this installs third-party code
$ npx degit AliYmn/claude-structured/.claude ./rig-claude-structured # inspect, then merge into .claude/ MCP servers are added to Claude Code at local scope; env vars are shown as YOUR_… placeholders — we never store values. Files are fetched with degit into a separate folder so you can review before merging.
$ npx degit AliYmn/claude-structured/.claude/skills/code-review .claude/skills/code-review $ npx degit AliYmn/claude-structured/.claude/skills/debug .claude/skills/debug $ npx degit AliYmn/claude-structured/.claude/skills/new-endpoint .claude/skills/new-endpoint $ npx degit AliYmn/claude-structured/.claude/skills/refactor .claude/skills/refactor
$ curl -fsSL --create-dirs -o .claude/agents/researcher.md https://raw.githubusercontent.com/AliYmn/claude-structured/main/.claude/agents/researcher.md $ curl -fsSL --create-dirs -o .claude/agents/reviewer.md https://raw.githubusercontent.com/AliYmn/claude-structured/main/.claude/agents/reviewer.md $ curl -fsSL --create-dirs -o .claude/agents/test-writer.md https://raw.githubusercontent.com/AliYmn/claude-structured/main/.claude/agents/test-writer.md
Merge into .claude/settings.json (project) or ~/.claude/settings.json (user). Hook commands reference scripts in the source repo — copy those too.
{
"permissions": {
"deny": [
"Bash(rm -rf *)",
"Bash(git push --force*)",
"Bash(git push -f*)",
"Bash(git checkout main*)",
"Bash(git checkout master*)",
"Bash(chmod 777*)",
"Bash(curl * | bash*)"
]
},
"hooks": {
"PreToolUse": [
{
"matcher": "Write|Edit",
"hooks": [
{
"type": "command",
"command": "case \"$FILEPATH\" in *lock.json|*lock.yaml|*.lock|*lockb) echo 'BLOCK: Do not edit lock files directly.' && exit 1;; esac"
}
]
}
]
}
} Skills (4)
Subagents (3)
| researcher model: sonnet | Research a topic by exploring the codebase and documentation without making changes |
| reviewer model: sonnet | Review code changes for quality, security, and consistency |
| test-writer model: sonnet | Analyze code and write comprehensive tests for it |
Hooks (4)
| event | matcher | runs |
|---|---|---|
| PostToolUse | Write|Edit | if command -v prettier >/dev/null 2>&1; then prettier --write "$FILEPATH" 2>/dev/null; elif command -v ruff >/dev/null 2>&1; then ruff format "$FILEPATH" 2>/dev/null; elif command -v gofmt >/dev/null 2>&1; then gofmt -w "$FILEPATH" 2>/dev/n |
| PostToolUse | Write|Edit | if command -v eslint >/dev/null 2>&1; then eslint --fix "$FILEPATH" 2>/dev/null; elif command -v ruff >/dev/null 2>&1; then ruff check --fix "$FILEPATH" 2>/dev/null; fi |
| PreToolUse | Write|Edit | case "$FILEPATH" in *lock.json|*lock.yaml|*.lock|*lockb) echo 'BLOCK: Do not edit lock files directly.' && exit 1;; esac |
| Stop | * | echo '--- Reminder: Did you update tasks/changelog.md? ---' |
Slash commands (12)
/add-feature/audit/catchup/commit/docs/fix-issue/pre-deploy/refactor/review/setup/test/update
Cursor rules (4)
code-qualityproject-rules · alwayssecuritytesting
Permissions
deny (7)
Bash(rm -rf *)
Bash(git push --force*)
Bash(git push -f*)
Bash(git checkout main*)
Bash(git checkout master*)
Bash(chmod 777*)
Bash(curl * | bash*)
ask (0)
—
allow (13)
Read
Bash(cat *)
Bash(ls *)
Bash(find *)
Bash(grep *)
Bash(head *)
Bash(tail *)
Bash(wc *)
Bash(git status*)
Bash(git diff*)
Bash(git log*)
Bash(git branch*)
Bash(mkdir *)
Similar rigs
sjhalani7/vaen
Package your AI coding harness into a portable .agent file, and share it across repos, teams, & the community without ever having to copy-paste instructions, skills, MCP config, or secrets.
Minimalist 20 tok ·
jaqubowsky/fleet
Runs Claude Code and pi agents in parallel on your Mac, one Docker sandbox per issue. A host agent hands out the work, watches every sandbox and brings back tested, reviewed pull requests.
Minimalist 341 tok ·
OMOCHInoHOSHI/dotfiles-claude
.claude
Pragmatist 293 tok ·
Bijaykars/claude-code-autoroute
Cost-aware model routing for Claude Code using Haiku, Sonnet, and Opus subagents, with failure tracking and experimental self-tuning.
Orchestrator 2.3k tok ·