writing-for-agents
하는 일
스킬이나 프로젝트 지침 파일처럼 AI 에이전트가 읽는 문서를 쓰는 방법을 안내합니다. 에이전트가 매번 안정적으로 따라야 하는 지침을 쓰는 사람을 위한 스킬입니다.
사용하는 경우
- ✓에이전트를 위한 스킬을 만들거나 편집할 때.
- ✓AGENTS.md나 CLAUDE.md 파일을 쓰고 있을 때.
- ✓에이전트가 매번 같은 방식으로 문서를 따르기를 원할 때.
스킬 링크
https://github.com/mattpocock/skills/blob/main/skills/productivity/writing-for-agents/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“우리 프로젝트 규칙을 에이전트가 더 안정적으로 따르도록 제 CLAUDE.md를 다시 써 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
스킬은 에이전트가 각 부분을 언제 읽어야 할지 알 수 있도록 명확한 포인터와 트리거를 쓰는 법을 설명합니다. 자료를 더하기 전에 문장을 다듬는 것을 권합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Reference for writing any document an agent consumes: a skill, an AGENTS.md / CLAUDE.md, a doc reached by a pointer. The packaging differs; the writing does not: the same levers make each one predictable, since the agent takes the same process every run rather than producing the same output.
When the document you're writing is a skill, read SKILL-MECHANICS.md for frontmatter, invocation choice, and router skills.
Context pointers
A context pointer is a reference held in the agent's context that names some out-of-context material and encodes the condition for reaching it. A skill's description is one; a line in AGENTS.md naming a doc is the same object. The pointer's wording, not its target, decides when the agent reaches the material, and how reliably. A must-have target behind a weakly worded pointer is a variance bug: sharpen the wording first, and inline the material only if sharpening fails.
A pointer does two jobs: state what the material is, and list the branches that should trigger reaching it (a branch is a distinct case the document handles, so different runs take different paths through it). Every word of an always-loaded pointer costs on every turn, so it earns even harder pruning than the body:
- Front-load the leading word: the pointer is where it does its triggering work.
- One trigger per branch. Synonyms that rename a single branch are one branch written twice; collapse them and keep only genuinely distinct branches.
- Cut identity the body already carries.
The two loads
Every document and pointer you add spends one of two budgets:
- Context load is the cost of always-loaded material on the agent's window: an
AGENTS.mdline, a skill description, anything sitting in context every turn, spending tokens and attention whether or not it fires. - Cognitive load is the cost on the human: which documents exist and when to reach for each. The human is the index. Not a cost to minimise: it is the price of human agency; spend it where human judgement matters, remove it where it does not.
Material reached only through a pointer escapes context load at the price of the pointer's own line; material with no pointer at all rides entirely on cognitive load.
Information hierarchy
A document is built from two content types: steps (the ordered actions the agent performs) and reference (definitions, rules, facts consulted on demand). The two mix freely: all steps (a recipe), all reference (a review's rules, this skill), or both. The core decision is where each piece sits on the information hierarchy, a ladder ranked by how immediately the agent needs the material:
- In-file step is the primary tier: what the agent does, in order.
- In-file reference is consulted on demand. Often a legitimately flat peer-set (every rule of a review on one rung), which is a fine arrangement, not a smell.
- Disclosed reference is pushed out into a separate file, reached by a context pointer, loaded only when the pointer fires. Spans a sibling file in the same folder through fully external reference that lives anywhere and any document can point at.
Push too little down and the top bloats; push too much and you hide material the agent actually needs. That tension is the whole decision.
Progressive disclosure is the move down the ladder (out of the main file and behind a pointer) so the top stays legible. Not primarily a token optimisation: it is how the hierarchy is protected. Branching is the cleanest disclosure test: inline what every branch needs, and push behind a pointer what only some branches reach. When a document has steps, in-file reference that should be disclosed buries them and turns attending to them into a coin-flip: a variance lever, not just a legibility one.
Co-location is the within-file companion: where the ladder decides how far down a piece sits, co-location decides what sits beside it once there. Keep a concept's definition, rules, and caveats under one heading rather than scattered, so reading one part brings its neighbours with it. The test: the document should read like documentation written for the agent. Grouped material reads that way; scattered material does not. (Distinct from duplication: that repeats one meaning in two places; scattering fragments one meaning across many.)
Sprawl is the failure mode here: a document simply too long, even when every line is live and unique. Attenti
자주 묻는 질문
컨텍스트 포인터란 무엇인가요?
에이전트가 가진 참조로, 어떤 자료를 가리키고 언제 읽어야 하는지 설명합니다.
스킬 파일 설정도 다루나요?
예. 스킬에 대해서는 frontmatter와 스킬 호출 방식을 다루는 별도의 참고 자료를 가리킵니다.
왜 문장이 그렇게 중요한가요?
포인터의 문장이 에이전트가 그 자료에 언제 도달할지를 자료 자체보다 더 많이 결정한다고 스킬은 말합니다.
상세 정보
작성자의 원본 설명
Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.
repo: mattpocock/skills
인기도
- GitHub 스타
- 310k
- 순위
- #125
- 라이선스
- MIT
- 업데이트
- 2026. 11. 1.
댓글
- …
이 저장소의 다른 스킬
ask-matt
310k에이전트가 아이디어에서 배포된 코드까지 이어지는 코딩 스킬 모음의 안내자가 되어, 상황에 맞는 스킬을 찾아 주도록 돕습니다.
code-review
310k마지막 기준점 이후 바뀐 내용을 저장소의 코딩 표준과 원래 명세에 나란히 비교해, 병합 전에 검토하도록 돕습니다.
domain-modeling
310k팀이 쓰는 용어를 담은 공유 프로젝트 용어집을 만들고, 중요한 설계 결정을 기록해 코드가 같은 단어를 쓰도록 돕습니다.
implement-spec
310k완성된 명세와 그 티켓을 작동하는 코드로 바꾸고, 티켓을 순서대로 처리한 뒤 하나의 브랜치에 모아 줍니다.
비슷한 스킬
writing-skills
311k에이전트를 위한 새 스킬을 작성하고, 각 스킬이 실제로 에이전트의 행동을 바꾸는지 사용하기 전에 테스트하도록 가르칩니다.
bengali-nlp
280k에이전트가 벵골어 텍스트를 처리하도록 돕습니다. 언어를 이해하고 다루며, 텍스트를 정규화하고 고유한 특징을 처리합니다.
prompt-caching-strategy
280k언어 모델용 프롬프트를 에이전트가 최적화하도록 돕습니다. 프롬프트 구성을 분석해 정보를 재사용함으로써 비용을 줄이고 응답 속도를 높입니다.