skills/context-engineering-global/SKILL.md
为全局 rules file 做 context engineering。适用于审查或改写 ~/.claude/CLAUDE.md 这类全局上下文文件,判断某条长期规则是否应进入全局层,或优化跨项目、跨任务、跨会话都生效的协作约束。触发词包括:全局提示词、全局上下文、CLAUDE.md 优化、system prompt、global prompt、global rules。
npx skillsauth add plimeor/agent-skills context-engineering-globalInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
帮助用户维护精简、稳定、可长期复用的全局上下文层。
这个 skill 只负责“全局常驻”的那一层,不负责项目局部规则和当前任务的临时上下文。
这个 skill 做四件事:
官方标准来源(需要时重新获取最新版本):
~/.claude/CLAUDE.md 或等价的全局 rules fileAGENTS.md / CLAUDE.md以上问题交给 context-engineering-project。
用户通常会以四种方式触发:
用户描述一类长期重复出现的不顺心场景。
做法:
用户直接给出想写进全局 rules file 的内容。
做法:
用户没提供特定内容,要求直接优化现有全局文件。
做法:
用户给一个指令让你读文件、读对话、搜索资料或总结摩擦,然后从中提取全局上下文候选内容。
做法:
在建议“把它写进全局 prompt”之前,先排除以下更常见的真实原因:
对每条候选规则,依次检查:
来源:https://code.claude.com/docs/en/best-practices
AGENTS.md / CLAUDE.md无论哪种输入模式,最终输出都包含:
对每条候选内容先给出结论:
对每条改动:
对每条未进入全局层的内容:
对每条不采纳的内容,说明原因。
tools
Decide whether and how to use authorized sub-agents, then coordinate delegated work while preserving the main agent's context. Use when the user asks for orchestration, parallel agents, delegation, background workers, context isolation, or when another skill needs delegated research, review, implementation, or verification. Owns host-policy checks, delegation packets, non-overlap, report verification, and stop rules. Do not use to bypass tool policy, infer user authorization, or add coordination overhead to simple single-threaded tasks.
development
Use before finalizing a non-trivial answer, recommendation, review, or decision to reconsider it and raise its quality, especially when shallow reasoning, context inertia, false framing, overconfidence, unfit analogy transfer, or an obvious-but-missed defect could distort the result. Trigger especially before applying external evidence, familiar frameworks, or comparisons to the user's specific request, and when the user asks to reconsider, double-check, take a second look, or sanity-check an answer. Reconsider the draft against its most likely failure mode, and use independent scrutiny only when it is useful and authorized.
development
Review concrete code plan drafts, specs, diffs, and implementation shapes. Use for code-review requests, serious code-plan design critique, and judging whether a proposed direction is sound. Prioritize solution direction, premise validity, logic chain, constraints, alternatives, design shape, contracts, tests, local fit, and actionable findings. Near miss: use code-plan to create or revise plans; use code-scope-gate for pre-spec scope shaping.
development
Write evidence-backed coding plans for implementation, debugging, refactoring, migrations, design parity work, and long-running agent tasks. Use when defining, clarifying, refining, or validating a development plan, /goal prompt, implementation approach, scope and non-goals, work sequence, acceptance criteria, regression evidence, verification strategy, or stop condition. Near miss: use code-review when judging an existing diff, spec, or already drafted plan rather than drafting or revising a plan. Also use when the user says `design twice` after a plan and wants an APOSD-style second-design pass over the completed plan.