laravel-knowledge
Skill1 starsChanged 13 days agoMITView on GitHub
Bootstrap Claude Code context for a Laravel repo: CLAUDE.md, .ai/ (project.yaml, domain/*.md, danger-zones), and .claude/agents (Arjuna dev, Vidura review, Yudhishthira qa, Krishna architect). Use to onboard or refresh a Laravel project's AI knowledge base.
- Reads credentials
In this repository3 other files it gives its agents.
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 0 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 34
Graph/wiki (optional): If /project-knowledge is installed: python3 ~/.claude/skills/project-knowledge/scripts/build_knowledge.py <repo> and …
- Very specific: line 35
Check existing state: If CLAUDE.md, .ai/, or .claude/agents/ already exist, revise them.
- Very specific: line 46
Never read or reproduce .env values or hardcoded credentials.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill 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.
Files
/laravel-knowledge
Generates a Claude Code knowledge layer for a Laravel repo: a tiny always-loaded CLAUDE.md, a code-verified knowledge base in .ai/, and four project-specific subagents that tell themselves which .ai/ files to read. Named laravel rather than php because it relies on Laravel structure (routes, artisan, jobs, Kernel, phpunit).
Usage
/laravel-knowledge [path] # create (or revise) the knowledge layer for a Laravel repoOutput
CLAUDE.md minimal guide + "read on demand" table + agents table
.ai/AGENTS.md index and orientation path
.ai/project.yaml machine-readable facts
.ai/domain/*.md architecture, codebase-tour, known-gotchas, + subsystem files
.ai/danger-zones.yaml only with evidence
.claude/agents/{dev,review,qa,architect}.md
.claude/settings.json deny Read on vendor, logs, .env (merge, never clobber)Steps
- Facts (deterministic). Run
python3 ~/.claude/skills/laravel-knowledge/scripts/laravel_facts.py <repo>for versions, datastores, loaded vs dead route files, symlinked dirs inapp/, commented-out middleware, scheduler size, phpunit DB overrides, default branch, possible hardcoded-credential files (paths only).--project-yamlprints a draft.ai/project.yaml. It never reads.env. - Graph/wiki (optional). If
/project-knowledgeis installed:python3 ~/.claude/skills/project-knowledge/scripts/build_knowledge.py <repo>and read.ai/wiki/code-wiki.mdfor hub files instead of re-exploring. - Check existing state. If
CLAUDE.md,.ai/, or.claude/agents/already exist, revise them; never delete user content. Keep a copy asCLAUDE.original.mdbefore restructuring an existing CLAUDE.md. - Write
.ai/followingtemplates/domain-outlines.md: start withknown-gotchas.md(verify each suspicious fact in code: dead routes, disabled middleware, observers registered or not, shared symlinks, test DB behaviour), thenarchitecture.md, then the subsystem files the facts justify. Every claim citesfile:lineor saysTODO: Domain owner input required. Useproject.yamlfrom step 1, adding only evidenced keys (infrastructure,commands.lint,git.branch_pattern). - Write
CLAUDE.mdfromtemplates/CLAUDE.md: concise, no restated lint rules, domain table pointing only at files that exist, the top operational risks inline. - Write agents from
templates/agents/*.md. Fill every{{PLACEHOLDER}}from facts and.ai/; delete sections for datastores the repo lacks; replace template-style rules with ones you confirmed. Do not copy rules from another project: hand-written agents often name files that are dead or nonexistent (a legacyapp/Http/routes.php, a missing layout) and contradict CLAUDE.md. Verify every path you name. Keep persona names Arjuna/Vidura/Yudhishthira/Krishna. Each<!-- FILL: ... -->comment is an instruction: replace it with real content (or delete the section), never leave it. - Settings and danger zones. Merge
templates/settings.jsondeny rules into.claude/settings.json. Write.ai/danger-zones.yaml(template) only for entries with evidence. - Check.
grep -rn '{{\|FILL:' CLAUDE.md .ai .claudemust return nothing. Grep every path mentioned in CLAUDE.md and the agents withls; confirm no secret values appear anywhere; confirm CLAUDE.md is under ~150 lines. Report what was written and everyTODOleft for the domain owner. Do not commit. Note thatCLAUDE.mdand.claude/may be git-excluded locally (.git/info/exclude).
Rules
- Evidence only: imports, config, routes, tests, git history. Unknown stays unknown.
- Stale knowledge is worse than none: prefer a short true file to a long guessed one.
- Never read or reproduce
.envvalues or hardcoded credentials; cite the file path only. - Persona/agent content is project-specific; templates are structure, not facts.
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
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.

