claude

mcp
Guvenlik Denetimi
Basarisiz
Health Uyari
  • No license — Repository has no license file
  • Description — Repository has a description
  • Active repo — Last push 0 days ago
  • Low visibility — Only 5 GitHub stars
Code Basarisiz
  • rm -rf — Recursive force deletion command in settings.json
Permissions Gecti
  • Permissions — No dangerous permissions requested
Purpose
This is a personal configuration template for Claude Code. It provides global rules, automated hooks, and 16 expert agent personas to standardize and discipline AI-assisted software development.

Security Assessment
Overall Risk: Medium. The repository relies heavily on shell scripts and hooks for automation, meaning it executes local shell commands as part of its standard workflow. The automated scanner flagged a recursive force deletion command (`rm -rf`) inside the settings file, which is a standard hazard when dealing with shell automation. While there are no hardcoded secrets or dangerous network requests, the installation process explicitly symlinks the project's `settings.json` file directly to your local `~/.claude/` directory. This gives the configuration broad reach over your local environment. Users must manually inspect the hooks and scripts before running them to ensure the automated deletion routines only target intended directories.

Quality Assessment
The project is actively maintained, with its most recent push happening today. However, it is a low-visibility personal project with only 5 GitHub stars and, crucially, no open-source license. The lack of a license means that, strictly speaking, all rights are reserved by the author, and you do not have legal permission to copy, modify, or use the code. Community trust and adoption cannot be accurately gauged due to the low star count.

Verdict
Use with caution — ensure you thoroughly review the shell scripts and `settings.json` for safe directory paths before symlinking this to your local environment.
SUMMARY

Personal Claude Code configuration - global rules, 15+ expert agents, reusable skills, hooks, and coding standards for consistent AI-assisted development.

README.md

Claude Code Configuration

Custom configuration for Claude Code that turns it into a disciplined engineering partner with structured workflows, strict guardrails, and domain-specific expertise.

Why

Out of the box, Claude Code is capable but generic. This configuration adds opinionated defaults - a mandatory research-plan-implement workflow, security boundaries, code standards, and 16 expert agents that activate automatically based on task context. The result is more consistent, reviewable, and safe output.

Repository Structure

CLAUDE.md                      # Core rules (workflow, security, behavioral constraints)
settings.json                  # Global settings (hooks, deny list, permissions)
agents/                        # 16 expert agent personas
commands/                      # Slash commands for frequent workflows
hooks/                         # Automation scripts (formatting, typechecking)
rules/                         # Modular instruction files (always-loaded + path-scoped)
scripts/                       # Utility scripts (notifications)
skills/                        # Reusable workflows with supporting files
docs/                          # Reference documentation
pull_request_template.md       # Default PR template
.github/workflows/             # CI (markdown linting)

Setup

Symlink the repo contents to ~/.claude/ so changes auto-sync:

# Clone the repo
git clone [email protected]:domengabrovsek/claude.git ~/dev/claude

# Symlink to ~/.claude/
ln -sf ~/dev/claude/CLAUDE.md ~/.claude/CLAUDE.md
ln -sf ~/dev/claude/agents ~/.claude/agents
ln -sf ~/dev/claude/rules ~/.claude/rules
ln -sf ~/dev/claude/skills ~/.claude/skills
ln -sf ~/dev/claude/commands ~/.claude/commands
ln -sf ~/dev/claude/hooks ~/.claude/hooks
ln -sf ~/dev/claude/scripts ~/.claude/scripts
ln -sf ~/dev/claude/settings.json ~/.claude/settings.json

# Configure smudge/clean filter to strip ephemeral state from settings.json
git config filter.strip-ephemeral-state.clean 'jq "del(.feedbackSurveyState)" 2>/dev/null || cat'
git config filter.strip-ephemeral-state.smudge cat

Note: Claude Code writes ephemeral state (e.g. feedbackSurveyState) to settings.json at runtime. The smudge/clean filter in .gitattributes automatically strips this before git sees it, so git status stays clean.

Components

CLAUDE.md

Core rules loaded every session (~50 lines). Kept lean - detailed standards live in rules/.

  • 5-phase workflow: Research - Plan - Annotate - Implement - Summarize
  • Security boundaries
  • Behavioral constraints (scope discipline, verification gates)

Rules (rules/)

Modular instruction files. Always-loaded rules have no frontmatter. Path-scoped rules use globs: frontmatter and only load when editing matching files, saving tokens.

Rule Scope Loads when...
agent-routing.md Always Every session (agent selection table)
git-conventions.md Always Every session (commits, PRs, semver)
engineering-principles.md Always Every session (sizing, slicing, exploration)
state-persistence.md Always Every session (artifact saving, naming)
typescript.md **/*.ts,**/*.tsx Editing TypeScript files
tests.md **/*.test.ts,**/*.spec.ts Editing test files
database.md **/migrations/**,**/*.sql Editing database/migration files
infrastructure.md **/Dockerfile,**/*.tf Editing infrastructure files

Agents (agents/)

16 expert agent personas across 5 categories. Each follows a 9-section structure with strict guardrails, review checklists, and red-flag detection. Loaded automatically via the routing table in rules/agent-routing.md.

See Agent Reference for the full listing.

Skills (skills/)

Reusable workflows invoked on-demand. Cost ~200 tokens when idle (metadata only) vs. full cost if in CLAUDE.md.

Skill Trigger Purpose
spec /spec <topic> Define requirements before planning
build /build Implement approved plan incrementally with quality gates
test /test <target> Write tests using TDD (RED-GREEN-REFACTOR) or prove-it pattern
ship /ship Pre-launch validation and release workflow
fix-issue /fix-issue 1234 Full issue resolution: fetch, research, plan, implement, test, PR
review-pr /review-pr 567 Structured PR review with BLOCKER/ISSUE/SUGGESTION/NIT/PRAISE severity
ci /ci Monitor CI pipeline status, analyze failures, propose fixes. Use with /loop 2m /ci for auto-polling
mr /mr Create MR/PR with template, conventional commit checks, and stacked MR/PR dependency support

Commands (commands/)

Slash commands for frequent workflows. Available as /user:<name>.

Command Trigger Purpose
research /user:research <topic> Phase 1: explore codebase, save findings to .claude/state/research/
plan /user:plan Phase 2: create implementation plan, save to .claude/state/plans/
summarize /user:summarize Save session diary to .claude/state/sessions/
typecheck /user:typecheck Run tsc and fix all type errors
verify-done /user:verify-done Full quality gate before declaring work done (lint + typecheck + test + build + git status)

Hooks (hooks/)

Automation scripts triggered at lifecycle events. Configured in settings.json (symlinked to ~/.claude/settings.json).

Hook Event Purpose
pre-pr-test-gate.sh PreToolUse (gh pr create) Block PR creation if tests fail
auto-format.sh PostToolUse (Write/Edit) Auto-format files with project formatter (Biome/Prettier)
post-edit-typecheck.sh PostToolUse (Write/Edit) Run typecheck and lint on .ts/.tsx files after edits
watch-pr-checks.sh PostToolUse (gh pr create) Poll CI checks in background, notify on pass/fail
Notification Notification macOS desktop notification when Claude needs input
Compact reminder SessionStart (compact) Re-inject workflow context after compaction

Scripts (scripts/)

Utility scripts referenced by skills and hooks.

Script Purpose
notify.sh Send macOS desktop notification unless a terminal or IDE is in the foreground

State (.claude/state/ per project)

Session artifacts saved at the project level so they persist across sessions and machines.

.claude/state/
  research/    # Research artifacts from Phase 1
  specs/       # Specification documents from /spec
  plans/       # Implementation plans from Phase 2
  sessions/    # Session diary entries from Phase 5

Security

  • Comprehensive deny list in settings.json blocking 35+ sensitive file patterns (env files, SSH/GPG keys, credentials, cloud configs, shell history)
  • Bash command restrictions blocking destructive operations (rm -rf, git push --force, sudo, DROP TABLE)
  • Lock file protection prevents edits to package-lock.json, yarn.lock, pnpm-lock.yaml
  • PreToolUse gate blocks PR creation when tests fail
  • PostToolUse formatting hook validates files before processing
  • Agent guardrails enforce security checks across all domains

CI

Markdown linting runs on every push and PR via GitHub Actions.

Documentation

Yorumlar (0)

Sonuc bulunamadi