project-memory
БесплатноБез исполняемых скриптовНе проверенGenerates project instruction files (AGENTS.md or CLAUDE.md) that transfer institutional knowledge. Use when setting up projects or onboarding. For lessons…
от jamditis★ 470 звёзд на GitHubОб этом скилле
Project memory generator
Create a project instruction file that transfers institutional knowledge, not obvious information. Think like a senior journalist onboarding a competent colleague. Do not explain how journalism works; explain this project's quirks.
Choose the canonical instruction file
Resolve the target before writing:
- If
AGENTS.mdexists, update it. If noCLAUDE.mdexists, then in Claude Code, also create a one-lineCLAUDE.mdthat imports it with@AGENTS.md. Claude Code loadsCLAUDE.md, notAGENTS.md. - If only
CLAUDE.mdexists, update it. - If both exist and one imports the other, edit the imported canonical file.
- If neither exists, create
AGENTS.md. In Claude Code, also create the same one-lineCLAUDE.mdimport.
Do not create competing copies of the same guidance. Keep nested instruction files only when a subdirectory needs narrower rules than its parent.
Project instructions are advisory
A project instruction file gives standing context to the active client. It does not enforce a rule by itself.
In Claude Code, CLAUDE.md content is delivered as user context after the
system prompt. Claude reads it and tries to follow it, but the file does not
guarantee strict compliance with vague or conflicting instructions. Source:
https://code.claude.com/docs/en/memory
| Mechanism | Use for | Behavior |
|---|---|---|
| Project instruction file | Standing facts, commands, conventions, and boundaries | Advisory context |
| Skills | Multi-step procedures and on-demand workflows | Loaded when relevant |
| Client enforcement | Actions that must block or run every time | Deterministic only when the client blocks, for example, a Claude Code hook that exits 2 or returns a PreToolUse deny. A prompt hook only adds a reminder |
Do not use a client hook as load-bearing shared behavior. If a rule must work in both Claude Code and Codex, state the rule in the project instruction file and document any optional client enforcement separately.
If an instruction is "block writes to published/" or "run an accessibility
check before commit," use client enforcement. If it is a "fact-check workflow"
or "FOIA-letter drafting," use a skill. Keep standing project facts and rules
in the project instruction file.
Claude Code guidance for effective instruction files includes an explicit include/exclude list. Source: https://code.claude.com/docs/en/best-practices
What belongs in the file
Include information an agent cannot infer reliably from the repository:
- Project-specific build, test, lint, and validation commands.
- Code or editorial rules that differ from common defaults.
- Repository etiquette, branch conventions, and approval boundaries.
- Architecture decisions and non-obvious dependencies.
- Environment requirements, named variables, and credential pointers without secret values.
- Common failure modes and the smallest known recovery steps.
- Source-handling, publication, privacy, or legal constraints specific to the project.
Exclude information the agent can discover cheaply:
- Standard language conventions and generic advice.
- Detailed API documentation that has a canonical source.
- File-by-file repository descriptions.
- Session logs, status updates, and facts that change often.
- Long tutorials or narrative history.
- Credentials, tokens, private values, or personal data.
For journalism projects:
- Include AP-style preferences that override defaults, source-citation rules, byline policy, embargo handling, source-protection invariants, and CMS quirks (for example, "story slugs must be unique across all desks, not just metro").
- Exclude "verify facts before publishing" and "use AP Style" without specifics. Every newsroom already knows both.
For every line, ask: Would removing this make a capable agent more likely to make a project-specific mistake? If not, remove it.
Keep the file small and scoped
Use short sections and direct instructions. Treat 200 lines as a review threshold, not a target. When the file grows:
- Move multi-step procedures into skills.
- Link to canonical reference documentation.
- Put narrow directory rules in a nested instruction file.
- Move transient notes into the client's memory feature or a gitignored local notes file.
- Remove duplicated and superseded rules.
If both supported clients are used, keep shared guidance in AGENTS.md and
let CLAUDE.md import it. Add client-specific guidance only when the behavior
cannot be expressed portably, and label the client.
Client-specific scoping options:
- Claude Code:
.claude/rules/files withpaths:frontmatter load only when the agent works on matching files. An@importloads in full at launch, so it does not reduce context size. - Codex: a nested
AGENTS.mdapplies to its directory and below.
Client-specific locations
In Claude Code, more specific locations take precedence. Source: https://code.claude.com/docs/en/memory
| Scope | Claude Code
Установить project-memory в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл project-memory?
Generates project instruction files (AGENTS.md or CLAUDE.md) that transfer institutional knowledge. Use when setting up projects or onboarding. For lessons from a finished project or investigation, use project-retrospective.
Как установить скилл project-memory?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл project-memory запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic