一键导入
project-context-loader
Load project conventions and generate session context. Use EXPLICITLY when needed, not automatically.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Load project conventions and generate session context. Use EXPLICITLY when needed, not automatically.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | project-context-loader |
| description | Load project conventions and generate session context. Use EXPLICITLY when needed, not automatically. |
| autoInvoke | false |
| priority | high |
| triggers | ["/project context","load project context","load conventions"] |
| allowed-tools | Read, Write, Grep, Glob, Bash |
| user-invocable | false |
AI-consumed reference. Optimized for Claude to read during execution. Human-readable explanation: see docs/architecture/HIERARCHICAL_PLANNING.md or docs/getting-started/ depending on topic.
Load project conventions and generate session context on demand.
Before: /run, code generation, refactoring, test writing.
Skip: Simple questions (no code), when session-context.toon already loaded.
If .claude/session-context.toon exists and is recent (< 1 hour), use it.
Scan codebase for: file naming, import style, export pattern, error handling, testing framework, styling approach. Write to .claude/session-context.toon.
From .claude/project-contexts/[project]/:
| File | When |
|---|---|
project-config.yaml | Always |
conventions.md | Always |
rules.md | Always |
repo-map.md | First task |
file-registry.yaml | When modifying code |
architecture.md | Architecture decisions |
loading_strategy[4]{scenario,files_to_load}:
Simple question,session-context.toon only
Bug fix / small change,"session-context.toon + conventions.md + file-registry.yaml"
New feature / refactor,All 7 files
Architecture decision,"session-context.toon + architecture.md + repo-map.md"
Token budget: Simple ~200, Bug fix ~800, Full ~2000, Architecture ~1000.
project:
name: {name}
stack: {detected}
patterns[7]{type,convention,example}:
file_naming,PascalCase,UserProfile.tsx
imports,absolute @/,import { Button } from '@/components/Button'
exports,named,export const UserCard = ...
errors,result,return { ok: true, data }
testing,vitest,describe('UserCard', () => ...)
styling,tailwind,className="flex items-center"
...
bash scripts/context-compress.sh -- generate contextrm .claude/session-context.toon -- force rescanCRITICAL: MUST run for EVERY message. Detects agent, complexity, AND model automatically. Without this, tasks route to wrong agents and use wrong models, degrading quality and wasting tokens.
5 techniques for different problem types. Use when stuck or facing complex challenges.
Structured thinking process for complex analysis. Supports revision, branching, and dynamic adjustment.
Angular 17+ gotchas and decision criteria. Covers signals vs observables, standalone patterns, and common pitfalls Claude gets wrong.
Designs RESTful APIs with endpoint naming, versioning strategies (URL path, header-based), pagination (offset and cursor), error response schemas, and OpenAPI conventions. Use when the user asks about REST API design, creating endpoints, URL structure, API versioning, status codes, Swagger, or OpenAPI specs.
Fast bug fixes with root cause investigation + TDD. Enforces 'no fix without root cause' discipline and verification protocol. Without this skill, fixes are applied at symptoms instead of sources, and bugs return.