~ / rigs / AliYmn / claude-structured

AliYmn/claude-structured

An opinionated project template for Claude Code — persistent context, autonomous workflows, self-improving agents.

↗ GitHub ★ 4 NOASSERTION updated 7mo ago project Claude CodeCodexCursor
share on X
ARCHETYPE
Automator
Hooks on every lifecycle event: format, lint, notify, log.
CONTEXT TAX · EVERY TURN
~628 tokens
Featherweight · median rig: 2.3k · breakdown
GUARDRAILS
3/5
Blocks destructive commands · Pre-tool screening hook · No YOLO mode · details

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)

eventmatcherruns
PostToolUseWrite|Editif 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
PostToolUseWrite|Editif 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
PreToolUseWrite|Editcase "$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

copied ✓