Loading...
Loading...
Generate or update AGENTS.md for a repository or VS Code workspace, create CLAUDE.md and GEMINI.md shims, build a project matrix with stable project codes, and include UBIQUITOUS_LANGUAGE.md as required context.
npx skill4agent add devarfeen/agent-skills-kit agents-mdAGENTS.mdCLAUDE.mdAGENTS.mdGEMINI.mdAGENTS.mdCLAUDE.mdAGENTS.mdAGENTS.mdAGENTS.md*.code-workspace.vscode/.code-workspace.code-workspacefoldersnamenamepath..code-workspaceAGENTS.mdpackage.jsonpnpm-workspace.yamlyarn.lockvite.config.*next.config.*pyproject.tomlrequirements.txtuv.lockpoetry.lockgo.modCargo.tomlGemfilecomposer.jsonDockerfiledocker-compose.ymlUBIQUITOUS_LANGUAGE.mdubiquitous-language.code-workspaceAGENTS.md## Project Matrix
| Project Name (Code) | Path | Tech Stack |
| --- | --- | --- |
| Full Platform Workspace (FULL-PLATFORM-WORKSPACE) | . | Meta workspace, no code |
| PARTNERS-API (PARTNERS-API) | ../partners-apis.example.com | PHP, Laravel |namepathnameProject Name (Code)🔌 PARTNERS-APIPARTNERS-API (PARTNERS-API)🧩 Full Platform Workspace.Full Platform Workspace (FULL-PLATFORM-WORKSPACE)ADMIN-WEBADMIN-APIAGENTS.mdpath: "."Meta workspace, no codeAGENTS.md# Agent Instructions
## Read First
- `AGENTS.md` is the canonical instruction file for agents in this workspace.
- `CLAUDE.md` and `GEMINI.md` are shims that point here.
- Read `UBIQUITOUS_LANGUAGE.md` when it exists before making domain decisions.
- Use the project codes in the Project Matrix when referring to projects in prompts, PRDs, issues, release notes, and discovery reports.
## Non-Negotiable Principles
Source:
https://github.com/forrestchang/andrej-karpathy-skills/blob/main/CLAUDE.md
Upstream license: MIT.
# CLAUDE.md
Behavioral guidelines to reduce common LLM coding mistakes. Merge with project-specific instructions as needed.
**Tradeoff:** These guidelines bias toward caution over speed. For trivial tasks, use judgment.
## 1. Think Before Coding
**Don't assume. Don't hide confusion. Surface tradeoffs.**
Before implementing:
- State your assumptions explicitly. If uncertain, ask.
- If multiple interpretations exist, present them - don't pick silently.
- If a simpler approach exists, say so. Push back when warranted.
- If something is unclear, stop. Name what's confusing. Ask.
## 2. Simplicity First
**Minimum code that solves the problem. Nothing speculative.**
- No features beyond what was asked.
- No abstractions for single-use code.
- No "flexibility" or "configurability" that wasn't requested.
- No error handling for impossible scenarios.
- If you write 200 lines and it could be 50, rewrite it.
Ask yourself: "Would a senior engineer say this is overcomplicated?" If yes, simplify.
## 3. Surgical Changes
**Touch only what you must. Clean up only your own mess.**
When editing existing code:
- Don't "improve" adjacent code, comments, or formatting.
- Don't refactor things that aren't broken.
- Match existing style, even if you'd do it differently.
- If you notice unrelated dead code, mention it - don't delete it.
When your changes create orphans:
- Remove imports/variables/functions that YOUR changes made unused.
- Don't remove pre-existing dead code unless asked.
The test: Every changed line should trace directly to the user's request.
## 4. Goal-Driven Execution
**Define success criteria. Loop until verified.**
Transform tasks into verifiable goals:
- "Add validation" → "Write tests for invalid inputs, then make them pass"
- "Fix the bug" → "Write a test that reproduces it, then make it pass"
- "Refactor X" → "Ensure tests pass before and after"
For multi-step tasks, state a brief plan:
```
1. [Step] → verify: [check]
2. [Step] → verify: [check]
3. [Step] → verify: [check]
```
Strong success criteria let you loop independently. Weak criteria ("make it work") require constant clarification.
---
**These guidelines are working if:** fewer unnecessary changes in diffs, fewer rewrites due to overcomplication, and clarifying questions come before implementation rather than after mistakes.
## Project Matrix
| Project Name (Code) | Path | Tech Stack |
| --- | --- | --- |
| ... | ... | ... |
## Domain Context
- Read `UBIQUITOUS_LANGUAGE.md` before domain-heavy work.
- If the file does not exist and terminology is unclear, generate it with the `ubiquitous-language` skill.
## Workspace Notes
- [VS Code workspace detection result.]
- [Meta workspace entry explanation, including the workspace folder with path `.` and the `.code-workspace` file if present.]
## Operating Rules
- Preserve unrelated user changes.
- Prefer existing project patterns over new abstractions.
- Keep generated plans tied to project codes.
- Run targeted validation for changed behavior.
## Source Notes
- Behavioral principles are copied verbatim from the Karpathy-inspired guidelines by forrestchang:
https://github.com/forrestchang/andrej-karpathy-skills/blob/main/CLAUDE.md
- Upstream license: MIT.AGENTS.mdCLAUDE.mdGEMINI.md# Agent Instructions
Read `AGENTS.md` first. It is the canonical instruction file for this workspace.
This file is a shim for tool compatibility.## Tool-Specific NotesAGENTS.mdGenerated agent instructions.
Files:
- `AGENTS.md`
- `CLAUDE.md`
- `GEMINI.md`
Project codes:
- `CODE` - Project Name
Notes:
- [VS Code workspace detected / not detected.]
- [UBIQUITOUS_LANGUAGE.md referenced / missing but referenced as recommended context.]