startup-context
Validate and diagnose startup context files — CLAUDE.md, AGENTS.md, copilot-instructions.md, rules — that inject instructions at session start across all four vendors.
- License 许可
- MIT
- 最近更新
- 2026-11-15
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- startup-context
- description
- Validate and diagnose startup context files — CLAUDE.md, AGENTS.md, copilot-instructions.md, rules — that inject instructions at session start across all four vendors.
02 资源文件 6
- 参考文档evals/eval_queries.json913 B
- 参考文档evals/evals.json3.2 KB
- 参考文档references/claude.md1.2 KB
- 参考文档references/codex.md569 B
- 参考文档references/copilot.md3.9 KB
- 参考文档references/cursor.md1.5 KB
03 SKILL.md 正文
Use this skill when working with files that inject instructions at startup — validating format, diagnosing why instructions aren't being read, or understanding load order and precedence per vendor.
What startup context is: Files that are automatically loaded into the model's context before any user prompt. Each vendor uses different file names and locations. All serve the same purpose: priming the model with project-specific or harness-level instructions.
Vendor mapping:
| Vendor | Primary file | Rules format | Legacy |
|---|---|---|---|
| Claude Code | CLAUDE.md | .claude/rules/*.md | — |
| Cursor | .cursor/rules/*.mdc | .cursor/rules/*.mdc | .cursorrules (root) |
| Codex | AGENTS.md | NOT SUPPORTED in plugins | — |
| Copilot CLI | AGENTS.md, CLAUDE.md, .github/copilot-instructions.md | .github/instructions/**/*.instructions.md (applyTo globs) |
— |
Load order (Claude Code): User CLAUDE.md (~/.claude/CLAUDE.md) → Project CLAUDE.md → Plugin CLAUDE.md (via @-import). Rules in .claude/rules/ are loaded after CLAUDE.md.
The @AGENTS.md workaround (Claude Code): Claude Code does not natively read AGENTS.md. When ynh exports for Claude, it writes a CLAUDE.md containing only @AGENTS.md — using Claude's @-import syntax to pull in the cross-vendor instructions file without duplicating content.
Copilot CLI needs no bridge: it reads AGENTS.md, CLAUDE.md (and .claude/CLAUDE.md), GEMINI.md, and .github/copilot-instructions.md natively. It combines every applicable file rather than picking a winner, deduplicating identical content — so an existing @AGENTS.md bridge file is harmless but redundant. There is no defined precedence between these files: if two disagree, both reach the model.
Diagnostic checklist:
- Is the file in the right location for the vendor?
- Claude Code: does the plugin CLAUDE.md use @-import correctly?
- Cursor: is the rules file .mdc (not .md)? Does it have required frontmatter (description, globs, alwaysApply)?
- Codex: rules are not supported in plugin format — use AGENTS.md only
- Copilot: is the path-scoped file
*.instructions.mdwith anapplyToglob (not Cursor's.mdc/globs)? Do any @-imports use absolute or~/paths, or escape the repo? Those are silently not loaded. Run/instructionsto see exactly what resolved. - Check file encoding and line endings — bare CR can cause silent failures
04 同仓库更多 Skills
doctor
暂无简介
add-seat
Add a named seat to a Wheelhouse - a crew member, a standing role (such as a dispatcher) or a worker - as a ynh harness with its charter, standing orders and only the tools its job needs, named from the Wheelhouse's roster. Use when asked to add, create or set up a seat, role, worker or agent in a Wheelhouse (a release manager, a PR watcher, a dispatcher, a designer, more workers), or to give a role a name, or to start on a Wheelhouse's team (its starter team), one role at a time. Also use to trial, make official or drop a seat.
voice
How voices work - what a voice skill contains, how to write a new one, and how several voices compose into one reply. Use whenever drafting a reply in a named voice, or when asked to create or change a voice.
voice-warm
A friendly voice that acknowledges the person and their effort. Compose with direct for friendly but brief.
voice-formal
A careful, complete voice for people outside the team - customers, partners, senior stakeholders.
voice-direct
A plain, brief voice that leads with the answer. The default when no voice is named.