ワンクリックで
refactor-agents-md
Use when refactoring a user-level or project-level AGENTS.md for progressive disclosure
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Use when refactoring a user-level or project-level AGENTS.md for progressive disclosure
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Use when brainstorming ideas, features, or directions for a project where independent perspectives from different model families (Claude/Codex/Gemini) would surface blind spots and spark creative options the user hasn't considered — especially "what cool things can I add", "what should I build next", "give me ideas for X"
Use when refactoring a user-level or project-level CLAUDE.md for progressive disclosure
Use when creating or editing a skill that uses Bash commands, external tools, or skill invocations and the allowed-tools frontmatter may be incomplete
(project) Use when bumping hardcoded tool versions in playbooks/roles/ to their latest releases
(project) Use when editing any file under skills/hal-skills/ or plugins/hal-voice/ to bump the plugin version before committing
Use when making any git commit. Always pass a brief description of what changed as the argument.
| name | refactor-agents-md |
| description | Use when refactoring a user-level or project-level AGENTS.md for progressive disclosure |
| user-invocable | true |
| disable-model-invocation | true |
Refactor an AGENTS.md toward progressive disclosure. Every retained line enters each Codex session in its scope, so it must earn that attention. Move narrower guidance to the closest applicable scope or a reusable skill, and remove instructions that do not change behavior.
Pick the target. Use a target named by the invocation. Otherwise ask the user to choose among the files that exist:
$CODEX_HOME/AGENTS.md, defaulting to ~/.codex/AGENTS.md when CODEX_HOME is unset.AGENTS.md.AGENTS.md on the path from the project root to the current working directory.Fetch the yardsticks. Fetch these pages to calibrate the audit:
Audit. Read the target and applicable broader AGENTS.md files. Give every instruction in the target exactly one verdict against the target's bar below. Finish only when every instruction has a verdict.
AGENTS.md; put a multi-step task workflow in a skill; put reference material in a linked document.Apply the bar for the target:
AGENTS.md, and task workflows to skills.AGENTS.md, a linked document, or a skill.Get decisions. Ask the user to resolve each contradiction. Then present the delete and demote lists, including every proposed destination, for sign-off. Leave all files untouched until the user signs off.
Rewrite. Apply the signed-off verdicts in one pass. Place each new nested AGENTS.md in the nearest directory whose whole subtree shares its guidance. Finish only when every audited instruction is kept, rewritten, demoted to its named destination, or deleted as approved.