educlopez/mallard/ps-project-doc
Claude Code and agent skill by educlopez/mallard
- community
- ext:[{"type":"template","description":"Custom templates for code generation"}]
Checking that the SKILL.md file is still in the repository.
Generate a lean, team-shared AGENTS.md for a PrestaShop repo (committed to the default branch) containing only what an agent cannot discover from the code: production PHP/PS version, why each override/ file exists, patches to core or third-party modules, build quirks, hard rules and gotchas. Replaces the old private CLAUDE.md generator. Candid or personal notes go to the gitignored CLAUDE.local.md instead. Auto-detects what it can, asks only for what code cannot say, and enforces a size budget. Use for the /project-doc command, when a PrestaShop repo has no AGENTS.md, has a bloated one, or is bootstrapping its docs for agentic development.
Install
npx vskill@latest install educlopez/mallard/ps-project-docSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as educlopez/mallard/ps-project-doc.
ps-project-doc — lean AGENTS.md generator
Writes the file an agent (Claude Code, Codex, Cursor, Copilot) reads on every task in this repo. It is read on every run, so every line costs context and attention. Evidence (ETH Zurich / LogicStar, arXiv 2602.11988): context files that restate what the repo already shows lower task success and raise cost by 20%+; LLM-generated overviews do not help agents find files. Only facts the agent cannot discover earn a line.
Hard rules
- AGENTS.md is shared and committed to the default branch. Never put personal preferences, tooling of one developer (memory tools, personal skills,
glab), credentials, or private client contacts in it. - Budget: target 40 lines, hard cap 80 (Claude docs advise under 200; the Codex cap is 32 KiB total and silently truncates). If detect + answers exceed 80 lines, cut, do not compress prose.
- Never write what the code shows: no directory tables, no module lists, no architecture overview, no style rules a linter enforces (PHPStan / CS-Fixer config already says it), no code snippets (they go stale), no copies of README text. Point to a file instead (
see docs/deploy.md). - Every line must pass the test: "if this line were missing, would the agent make a mistake it cannot catch by reading the code?" If not, drop it.
- English-only content. No company names in this skill.
- Never commit on the user's behalf. Write the file, show the diff, stop.
Where things live
| File | Committed | Content | |
|---|---|---|---|
AGENTS.md | yes | the lean shared facts below | |
CLAUDE.md | yes, 1 line | @AGENTS.md only (bridge for Claude Code versions or setups that skip AGENTS.md when a CLAUDE.md exists; the import is never read twice) | |
CLAUDE.local.md | no (gitignored) | candid gotchas, contacts, personal notes |
Claude Code reads AGENTS.md natively only when no CLAUDE.md exists, and ignores it otherwise unless /config → Project instructions is set to both. The one-line CLAUDE.md bridge removes that ambiguity. Check with /context all.
Flow
1. Verify repo
Confirm cwd is a PrestaShop repo (composer.json mentions prestashop, or both themes/ and modules/). Otherwise stop with a clear message.
2. Detect facts
JSON: ps_version, php_version (local Lando, NOT production), themes[], theme_stack, lando_name, lando_url, css_build, git_remote, modules[], overrides[], has_claudemd, claudemd_tracked, claudemd_gitignored, has_agentsmd, agentsmd_gitignored, agentsmd_lines, has_claude_local.
Read source files for anything empty or ambiguous (themes/*/config/theme.yml, composer.json). modules[] is only a hint for step 3; it never goes into the file as a list.
3. Ask (one short batch, skippable)
- Production PHP version (and PS version if it differs from local). Not detectable from the repo; check the server if the user has a registry, else ask.
- Why each `overrides[]` file exists. One line each. List only files that exist.
- Patches to core or third-party modules (files edited in
classes/,controllers/,src/or insidemodules/<third-party>/) and why. Checkgit logon those paths for hints before asking. - Gotchas: what burns a new dev or agent here that the code does not show. Skippable.
- Anything candid or personal → goes to
CLAUDE.local.md, not AGENTS.md.
4. Write AGENTS.md from the template
Omit any section with nothing to say. Do not leave TODO lines in a committed file: ask, or drop the line.
5. Bridge, gitignore, write
CLAUDE.mdmissing → create it containing exactly@AGENTS.md.CLAUDE.mdexists with real content (claudemd_trackedor not) → do not delete it silently. Show the user what is in it, propose: move the shared, non-discoverable parts into AGENTS.md, move candid parts intoCLAUDE.local.md, replaceCLAUDE.mdwith@AGENTS.md. Apply only after OK.- Ensure
.gitignorecontainsCLAUDE.local.md. Remove a staleCLAUDE.mdignore line only if the bridge is being committed (tell the user; ignoring the bridge defeats it). AGENTS.mdignored (agentsmd_gitignored) → remove that ignore line and tell the user.- Existing
AGENTS.mdwithout--refresh→ stop, offer--printor--refresh.--refreshbacks up toAGENTS.md.bakfirst; never stage the.bak. --printwrites nothing.
6. Report
Print: line count vs the 40/80 budget, what was auto-filled, what was asked, what was cut. If over 40 lines, say which lines are the weakest candidates to drop.
Audit mode (existing files)
When agentsmd_lines > 80, or the file contains a directory table, a module list, an overview paragraph or snippets: list those blocks and propose removals. Typical legacy CLAUDE.md files in this org are 100-340 lines; most of that is discoverable and should go.
Non-interactive reuse
When called by ps-new-project, accept pre-supplied values (track, theme name, PS version, default branch) and skip step 3 questions that the scaffold already answers. Production PHP and overrides stay unknown on a fresh project: omit those sections.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/ps-project-doc/SKILL.md
Popularity
- Repository stars
- 3
- 7-day trend score
- 7
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
templateCustom templates for code generation
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/educlopez/mallard/ps-project-doc)