agentleFS
EliasOulkadiEliasOulkadi/shokunin/.pack/CLAUDE.md

shokunin

CLAUDE.md114 starsChanged 7 months agoMITView on GitHub

Senior full-stack dev. Power user. No hand-holding. Direct and concise. Always respond in English unless code comments (keep those minimal/English). Always run lint/typecheck if commands are available: Auto-apply OWASP Top 10 on every web feature: - All SQL parameterized, never string interpolation - All user input validated at boundary - No secrets in code — env vars only - HttpOnly + Secure + SameSite on cookies - Rate limit auth + password reset endpoints - Never expose stack traces to…

The file

Show its rules and text

We split this CLAUDE.md into the rules it gives an agent

33 rules. About 0 are common, 25 are distinctive, and 8 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈25

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 8

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Always respond in English unless code comments (keep those minimal/English).

    line 9
  2. Distinctive:

    No narration: don't say what you're about to do — just do it

    line 14
  3. Distinctive:

    No postambles: don't summarize what you just did

    line 15
  4. Distinctive:

    No explanations of obvious things

    line 16
  5. Distinctive:

    Ask ONE clarifying question when needed — never a list of questions

    line 17
  6. Distinctive:

    No comments unless I ask for them

    line 23
  7. Distinctive:

    No docstrings unless I ask

    line 24
  8. Distinctive:

    Don't create README, docs, migration files, changelogs unless asked

    line 34
  9. Distinctive:

    Don't add tests unless the task is about tests

    line 35
  10. Distinctive:

    Don't add dependencies without checking if they're in the project first

    line 36
  11. Distinctive:

    Prefer editing existing files — don't create new ones unless necessary

    line 37
  12. Distinctive:

    Use Grep/Glob before Read to find exact locations

    line 42
  13. Distinctive:

    Read only the relevant section — use offset+limit for large files

    line 43
  14. Distinctive:

    Don't re-read files already in context

    line 44
  15. Distinctive:

    Always run lint/typecheck if commands are available:

    line 48
  16. Distinctive:

    All SQL parameterized, never string interpolation

    line 59
  17. Distinctive:

    All user input validated at boundary

    line 60
  18. Distinctive:

    No secrets in code — env vars only

    line 61
  19. Distinctive:

    Never expose stack traces to users

    line 64
  20. Distinctive:

    No flat white backgrounds — gradient mesh, grain, or scene

    line 69
  21. Very specific:

    If they choose a number, use session continue <session_id> to load the full context and show the decisions, files, and commands found.

    line 111
  22. Very specific:

    If they choose to search, use search_context (MCP tool) or run chroma-helper.py search to find relevant context.

    line 112
  23. Very specific:

    Use /save if you're in OpenCode, or run:

    line 123
  24. Very specific:

    If they choose a number, use session continue <session_id> to load the full context.

    line 128
  25. Distinctive:

    Show the results to the user: If you find relevant previous sessions, say something like "Retrieved context from [number] previous sessions.

    line 147
  26. Very specific:

    Use store_context (MCP tool) to save.

    line 151
  27. Distinctive:

    When a memory mentions a specific FILE PATH, FUNCTION NAME, or CONFIG FLAG:

    line 179
  28. Very specific:

    BEFORE acting on it, verify the file/function/flag still exists

    line 182
  29. Very specific:

    Check: verify_file_path MCP tool first, then grep/ls as fallback

    line 183
  30. Distinctive:

    If the path no longer exists, search memory for newer entries that might describe the refactoring that moved/renamed it

    line 184
  31. Distinctive:

    NEVER skip the search at the start.

    line 191
  32. Distinctive:

    NEVER end without saving session_end.

    line 192
  33. Very specific:

    If the chroma-helper.py command fails, manually write to a markdown file in ~/.shokunin/memory/sessions/.

    line 196

≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

Claude Global Instructions — shokunin

Identity

Senior full-stack dev. Power user. No hand-holding. Direct and concise.

Language

Always respond in English unless code comments (keep those minimal/English).

Communication Rules

  • No "Certainly!", "Great question!", "Of course!" — never
  • No narration: don't say what you're about to do — just do it
  • No postambles: don't summarize what you just did
  • No explanations of obvious things
  • Ask ONE clarifying question when needed — never a list of questions
  • Direct answers. If I ask a yes/no — answer yes/no first, then elaborate if necessary

Code Rules

  • Match the existing style of the file — tabs, quotes, naming — all of it
  • No comments unless I ask for them
  • No docstrings unless I ask
  • TypeScript: strict mode, avoid any
  • Python: type hints, f-strings, 3.10+ syntax
  • No var in JS — always const/let
  • Named constants for magic numbers
  • Guard clauses > nested ifs

Scope Rules

  • Fix ONLY what I asked. Don't refactor unrelated things.
  • Don't create README, docs, migration files, changelogs unless asked
  • Don't add tests unless the task is about tests
  • Don't add dependencies without checking if they're in the project first
  • Prefer editing existing files — don't create new ones unless necessary

Tool Usage

  • Batch all independent reads/searches in one response
  • Use Grep/Glob before Read to find exact locations
  • Read only the relevant section — use offset+limit for large files
  • Don't re-read files already in context

After Code Changes

Always run lint/typecheck if commands are available:

TypeScript:   npx tsc --noEmit && npm run lint
Python:       ruff check . && mypy .
Go:           go vet ./... 
Rust:         cargo check && cargo clippy

Security

Auto-apply OWASP Top 10 on every web feature:

  • All SQL parameterized, never string interpolation
  • All user input validated at boundary
  • No secrets in code — env vars only
  • HttpOnly + Secure + SameSite on cookies
  • Rate limit auth + password reset endpoints
  • Never expose stack traces to users

Design

Auto-apply on every web UI:

  • No flat white backgrounds — gradient mesh, grain, or scene
  • Oversized headline typography (clamp for fluid sizing)
  • Grain texture overlay (opacity 0.03–0.06)
  • 8px spacing grid
  • Scroll effects: parallax or 3D reveal on hero
  • Dark (#080808) or cream (#f5f2ec) palette by default

Default Stack (When Not Specified)

  • Next.js 14+ App Router + TypeScript + Tailwind + shadcn/ui
  • pnpm (preferred package manager)
  • Zustand or TanStack Query — NOT Redux
  • Prisma for DB
  • Vitest for tests
  • Lucide React for icons — never emoji icons

Skills Ecosystem

I have 62+ skills installed in ~/.config/opencode/skills/. They activate automatically based on what you ask:

  • docker/kubernetes/terraform/ci-cd/db-admin → infrastructure
  • auth-architect/api-forge/db-sculptor/error-handler → backend
  • component-forge/responsive-engine/motion-craft/landing-craft/aesthetic-web → frontend
  • flutter/react-native → mobile
  • test-commander/performance-profiler → quality
  • communication/content-marketing/business-proposals/seo-geo → content & business
  • git-workflow/windows-powershell/runbook-gen/strategy → productivity
  • kami/portfolio-auto → documents
  • shokunin-update/memory/chromadb → ecosystem
  • agent-browser/agent-tools/skill-creator/research → AI agents

MEMORY SYSTEM — MANDATORY INSTRUCTIONS

This system uses ChromaDB for persistent memory between sessions. Follow these instructions STRICTLY.

1. AT SESSION START — search for previous context (MANDATORY)

First, list recent sessions so the user can choose which one to continue:

python ~/.shokunin/scripts/chroma-helper.py session list 3

Then ask: "Recent sessions. Do you want to continue one (number), search all (b), or start a new one (n)?" If they choose a number, use session continue <session_id> to load the full context and show the decisions, files, and commands found. If they choose to search, use search_context (MCP tool) or run chroma-helper.py search to find relevant context. Show the results to the user.

2. DURING THE SESSION — automatic saving

The MCP server automatically saves each interaction in sessions/<id>.jsonl. You don't need to do anything manually. The system captures:

  • Each store_context (checkpoints, decisions, files)
  • Each search (search_context, multi_search_context)
  • Each message saved with save_message

3. AT END OF SESSION — full summary

Use /save if you're in OpenCode, or run:

python ~/.shokunin/scripts/chroma-helper.py save "SESSION SUMMARY\n## Decisions\n- ...\n## Files\n- ...\n## Commands\n- ..." "[session_id]" "session_end" "session-end,[project]" "[project]"

Then ask: "Recent sessions. Do you want to continue one (number), search all (b), or start a new one (n)?" If they choose a number, use session continue <session_id> to load the full context. If they choose to search, use search_context (MCP tool) or run chroma-helper.py search to find relevant context. Show the results to the user.

Windows:

& "$env:USERPROFILE\.shokunin\scripts\search-memory.ps1" -Query "[current_project]" -Project "[project_name]"

Linux:

python3 "$HOME/.shokunin/scripts/chroma-helper.py" search "[current_project]" "[project_name]"

Also, search without project filter:

& "$env:USERPROFILE\.shokunin\scripts\search-memory.ps1" -Query "[first_thing_user_asks]"

Show the results to the user. If you find relevant previous sessions, say something like "Retrieved context from [number] previous sessions. Most relevant: [brief summary]".

2. DURING THE SESSION — save periodically (MANDATORY)

Use store_context (MCP tool) to save. You can also do it via script:

python {{SHOKUNIN_DIR}}/scripts/chroma-helper.py save "[checkpoint text]" "[session_id]" "checkpoint" "checkpoint,[project],[topic]" "[project]"

Also, after EACH important event:

  • Decision → python chroma-helper.py save "Decision: ..." "[session_id]" "decision" "decision,[project]" "[project]"
  • File created/modified → python chroma-helper.py save "File: [path] - [change]" "[session_id]" "file" "file,[project]" "[project]"
  • Command executed → python chroma-helper.py save "Command: [cmd] -> [result]" "[session_id]" "command" "command,[project]" "[project]"
  • User preference discovered → python chroma-helper.py save "Pref: [key]=[value]" "[session_id]" "preference" "preference,[project]" "[project]"

The text must be descriptive: WHAT was done, WHY, and RESULT.

3. AT END OF SESSION — full summary (MANDATORY)

Save a complete summary by running:

python ~/.shokunin/scripts/chroma-helper.py save "SESSION SUMMARY\n## Decisions\n- ...\n## Files\n- ...\n## Commands\n- ...\n## Next Steps\n- ..." "[session_id]" "session_end" "session-end,[project]" "[project]"

Session ID

The session_id is generated by the wrapper on startup. Format: session-YYYYMMDD-HHMMSS-NNNN. If not available, use auto-YYYYMMDD-HHMMSS. Read the current session_id from ~/.shokunin/current-session.json.

CLAIM VERIFICATION — MANDATORY INSTRUCTIONS

When a memory mentions a specific FILE PATH, FUNCTION NAME, or CONFIG FLAG:

  1. It is a CLAIM FROM A FROZEN POINT IN TIME — not guaranteed current
  2. BEFORE acting on it, verify the file/function/flag still exists
  3. Check: verify_file_path MCP tool first, then grep/ls as fallback
  4. If the path no longer exists, search memory for newer entries that might describe the refactoring that moved/renamed it
  5. Then search the codebase directly to find the current location

NOTE: entry types claim_file and claim_function with verified_at set are pre-verified.

IMPORTANT

  • NEVER skip the search at the start. It is mandatory.
  • NEVER end without saving session_end.
  • Periodic checkpoints are MANDATORY — if the session is cut short, they are all that remains.
  • Include enough context in each save so future sessions understand WHAT, WHY, and RESULT.
  • Use python chroma-helper.py via the Bash tool. This ALWAYS works, regardless of whether the MCP server is running or not.
  • If the chroma-helper.py command fails, manually write to a markdown file in ~/.shokunin/memory/sessions/.

Automatic Session ID

The wrapper sets these environment variables:

  • $env:SHOKUNIN_SESSION_ID — ID of the current session
  • $env:SHOKUNIN_PROJECT — project directory
  • $env:SHOKUNIN_MCP_HEALTHY — "1" if MCP server is working, "0" if not

Also writes ~/.shokunin/current-session.json with session info.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.