一键导入
agents-project-memory
Configure CLAUDE.md/AGENTS.md/CODEX.md for persistent agent context. Use when setting coding standards or architecture docs for a codebase.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Configure CLAUDE.md/AGENTS.md/CODEX.md for persistent agent context. Use when setting coding standards or architecture docs for a codebase.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Builds multi-repo context hubs and compiled markdown knowledge maps. Use when profiling repo portfolios or assembling LLM-ready cross-repo knowledge bases.
Builds per-repo code graphs in JSON and markdown-ready derived artifacts. Use when you need blast radius, symbol-level maps, import graphs, inheritance, or test links.
Context-driven AI development with AGENTS.md, repo knowledge bases, Claude Code, Codex, and Copilot. Use when adopting repo-native AI workflows or multi-repo setups.
Technical writing for READMEs, ADRs, API docs, and changelogs. Use when revising or consolidating a repo documentation folder.
Design, implement, and troubleshoot NUKE-based CI/CD pipelines for .NET services with fast local-to-CI feedback loops. Use when creating or refactoring `nuke/Build.cs` target graphs, tuning `DependsOn`/`After`/`Triggers`/`OnlyWhenDynamic` behavior, orchestrating unit/API/DB test categories, merging and publishing coverage and test reports, building and pushing Docker images with traceable tags and digests, producing artifact contracts such as `deploy.env`, and diagnosing flaky or slow pipeline execution. For service code changes use $software-csharp-backend, for NUnit fixture design use $qa-testing-nunit, and for safe logging rewrites use $dev-structured-logs.
Systematic debugging for crashes, regressions, flakes, and production bugs. Use when diagnosing stack traces, logs, traces, or profiling data.
| name | agents-project-memory |
| description | Configure CLAUDE.md/AGENTS.md/CODEX.md for persistent agent context. Use when setting coding standards or architecture docs for a codebase. |
Configure project memory so Claude Code and Codex get stable, scoped instructions across sessions while keeping token cost low. Use a single source of truth: keep AGENTS.md as primary and symlink CLAUDE.md to it.
| Memory Type | Typical Location | Purpose |
|---|---|---|
| Managed policy | OS-dependent (see official docs) | Organization-wide standards (security, compliance) |
| Project memory | ./AGENTS.md (primary) + ./CLAUDE.md (symlink → AGENTS.md) | Shared project context and conventions |
| Project rules | ./.claude/rules/*.md | Modular, topic-focused rules (testing, security, style) |
| User memory | ~/.claude/CLAUDE.md | Personal preferences across projects |
| Project memory (local) | ./CLAUDE.local.md (git-ignored) | Local-only, project-specific preferences |
Claude Code (CLAUDE.md symlink):
/).CLAUDE.md files under the cwd are loaded only when Claude reads files in those subtrees.@path/to/file pulls in additional context (max depth: 5; ~ supported).Codex (AGENTS.md primary):
AGENTS.md in the repo root or working directory.CLAUDE.md when supporting both tools..claude/rules/ (one topic per file).@imports as navigation for detailed docs instead of copying them into memory.When repositories include a workflow script (for example scripts/git/feature-workflow.sh), prefer this sequence for AI coding sessions:
# 1) Create isolated branch/worktree
./scripts/git/feature-workflow.sh start <feature-slug>
cd .worktrees/<feature-slug>
# 2) Implement + commit
git add -A
git commit -m "feat: <summary>"
# 3) Run project quality gate (example)
../../scripts/git/feature-workflow.sh gate
# 4) Open PR (gate may run again)
../../scripts/git/feature-workflow.sh pr --title "feat: <summary>"
If no helper script exists, use native git worktrees and apply the same policy:
Create .claude/rules/testing.md, .claude/rules/security.md, etc. If a rule only applies to a slice of the repo, scope it:
---
paths:
- "src/api/**/*.ts"
---
> /memory to view and directly edit memories.> /init to bootstrap project memory (see official docs for current behavior).AGENTS.md directly; no special memory command is required.If you support multiple coding assistants, keep one canonical file and mirror it:
CLAUDE.md should be a symlink to AGENTS.md.Avoid tool-specific claims in the memory file; keep it portable and strictly project-focused.
When sessions repeatedly include very large memory payloads, apply this compact profile.
AGENTS.md short (target 50-120 lines).AGENTS.md (runtime): project goal, hard constraints, workflow rules, critical safety constraints.docs/* or skill references: long lists, examples, optional playbooks, large inventories.If startup memory exceeds practical context budgets, trim before adding new rules.
bash frameworks/shared-skills/skills/agents-project-memory/scripts/lint_claude_memory.sh .@imports and secrets before merging memory changes.| Resource | Purpose |
|---|---|
| references/memory-patterns.md | Patterns and anti-patterns |
| references/memory-examples.md | Full examples by stack |
| references/large-codebase-strategy.md | 100K–1M LOC strategy |
| data/sources.json | Official links |
| Skill | Purpose |
|---|---|
| agents-skills | Skill creation patterns |
| agents-subagents | Agent/subagent setup |
| docs-codebase | Repo documentation patterns |