This resume is also available in English.

8. Security and working with AI12 / 12 · All columns

Columns › 8. Security and working with AI › Part 58

Getting More from AI Agent Skills: Choosing, Writing and Chaining Them into a Workflow

搭配 AI skill 事半功倍:選用、撰寫與串成工作流程

A skill is a folder of know-how that loads only when it is needed. This article covers how skills load, where they live and how they divide the work with CLAUDE.md, subagents, hooks and MCP, then writes a release-check skill and Go checker for the shop, chains several skills from requirements to verification, and covers team sharing, security and how to tell whether a skill actually helps.

  • Claude Code
  • Skill
  • AI
  • 工作流程
In this article
  1. What this article solves
  2. Step 1: What a skill is — a folder and progressive disclosure
  3. Step 2: Where skills live and how they are invoked
  4. Step 3: What goes where — six mechanisms and their jobs
  5. Step 4: Use an existing skill or write your own
  6. Step 5: A release-check skill for the shop
  7. Step 6: Write a description that triggers at the right time
  8. Step 7: Chain skills into a workflow
  9. Step 8: Team sharing and versioning
  10. Step 9: Security — skills run things
  11. Step 10: Measure whether a skill helps
  12. Common pitfalls
  13. Key takeaways
  14. References
  15. Next

The previous article, “Building Your Own AI Skill from Scratch: Doing It Right, and Turning Your Project’s Git Repo into a Claude Code Skill”, built a first skill from scratch; the one before it, “AI as Your Second Brain: Organising Knowledge in Obsidian So Claude Code Can Use It”, gave the agent access to the project's knowledge and decisions every time it starts work: what it knows. This article deals with the other half: how it works. The same jobs — checking a release, adding an API endpoint, reviewing a branch — need their steps explained again every time, and when different people explain them, the results differ. A Claude Code skill turns "how we do this" into a folder that loads only when needed, so people and agents follow the same procedure every time.

What this article solves

The shop repository (example.com/shop) has used Claude Code for a while: “Building Go Microservices with Claude Code: Rules, Permissions and Security Review” set up CLAUDE.md, permissions and hooks, and “Bringing AI Workflows into the Team Process: PR Review, CI and Human Gates” turned the review prompt into a review-go skill. But the team quickly ran into new problems:

  • The same paragraph pasted dozens of times. "Before a release, check the CHANGELOG, check every migration has a down file, check go.mod has no replace, then run go test -race and govulncheck." Everyone types it every time, and everyone remembers a different list. Last month a payment release shipped a migration without a down file, and nobody noticed until the rollback.
  • CLAUDE.md keeps growing. People put every procedure into it, so it loads in full at the start of every session, eats context, and buries the rules that actually matter.
  • A pile of skills installed from the internet. Some have never triggered, two compete for the same job, and one ships a script nobody has read.
  • Nobody knows whether it helps. It feels faster, but no one can say where, or which skill should be deleted.

This article covers:

  1. What a skill is: a folder with a SKILL.md, and progressive disclosure, which loads it only when needed.
  2. Where skills live and how they are invoked: automatically or as a slash command.
  3. What belongs in CLAUDE.md, skills, slash commands, subagents, hooks and MCP.
  4. When to use an existing skill and when to write your own.
  5. A release-check skill for the shop, with the deterministic part handed to a tested Go program.
  6. Writing a description that triggers at the right time.
  7. Chaining skills into "clarify requirements → plan → test first → implement → review → verify before completion".
  8. Team sharing, versioning, security, and measuring whether a skill helps.

The fields and behaviour described here follow the skills and plugins pages of the official Claude Code documentation (code.claude.com/docs). The tool changes quickly, so check against the version you have installed; where a detail is uncertain, this article states the principle rather than a specific flag.

Step 1: What a skill is — a folder and progressive disclosure

A skill is a folder containing at least a SKILL.md:

.claude/skills/shop-release-check/
├── SKILL.md            # required: frontmatter + steps for Claude
└── reference/          # optional: details read only when needed
    ├── checklist.md
    ├── failures.md
    └── report.md

SKILL.md starts with YAML frontmatter. The two important fields are name (also the slash command name; defaults to the folder name) and description (what it does and when to use it). The documentation says every field is optional but recommends always writing description, because that is how Claude decides when to use the skill. After the frontmatter comes ordinary Markdown: steps, rules, output format. The same folder can hold reference documents, templates and scripts.

The biggest difference between a skill and "a saved prompt" is when it loads. There are three layers:

Layer 1: name + description In context in every session; every skill’s description is always there, so more skills cost more A request matches the description, or /name is typed Layer 2: the full SKILL.md Enters the conversation as one message and stays; compaction keeps only the beginning When a step needs it Layer 3 reference/*.md Enters context only when read Scripts, Go programs The source stays out; only the output enters The lower the layer, the larger it is and the less often it loads

Figure: in a regular session, only each skill's name and description sit in context; the full SKILL.md loads when it is judged relevant or invoked; reference files and scripts are read or run only when a step needs them, and a script's source never has to enter context — only its output does.

  1. The description is always present. In a regular session, every skill's description is loaded into context so Claude knows what is available. This layer is cheap but not free: fifty skills means fifty descriptions every time.
  2. The content loads when needed. When you type /shop-release-check, or Claude judges that your request matches a description, the full SKILL.md enters the conversation.
  3. Reference files and scripts are read step by step. If SKILL.md says "on FAIL, read reference/failures.md", Claude reads that file only when a FAIL actually happens; a script is simply run, and what enters context is its output, not its source.

This "table of contents first, turn to the page when you need it" design is called progressive disclosure. It solves exactly the problem of an ever-growing CLAUDE.md: CLAUDE.md loads in full every time and suits rules that apply every time; long procedures needed only for certain jobs go into skills, where they cost almost nothing until used.

Two behaviours after loading matter for the workflow design later:

  • Loaded content stays in the conversation. According to the documentation, when a skill is invoked its SKILL.md enters the conversation as one message and stays there in later turns; Claude Code does not re-read the file later. So rules should be written to apply for the whole task, and kept short — every line is a cost on every turn.
  • Compaction does not keep everything. When a long conversation is compacted automatically, Claude Code re-attaches the most recently invoked skills, but keeps only the beginning of each, within a shared total budget; after many invocations in one session, older skills can be dropped entirely. This is one reason for "hand over between steps through files" in Step 7.

Step 2: Where skills live and how they are invoked

Where a skill lives decides who can use it:

LocationWho can use itWhat it suits
.claude/skills/<name>/SKILL.mdEveryone working in this repositoryProject-bound procedures: releases, new endpoints
~/.claude/skills/<name>/SKILL.mdYou, in every project on this machinePersonal habits: note taking, how you word commits
skills/<name>/ inside a pluginAnyone who installs and enables itShared practice for many repositories or teams
The organisation's managed settingsEvery machine the organisation targetsCompany-wide procedures that must be identical

Some details:

  • Precedence on name clashes: the organisation's skill beats a personal one, and a personal one beats the project's. So a deploy in your ~/.claude/skills/ overrides the repository's deploy. Give shared skills a project prefix (shop-release-check, not release) so nobody's personal skill silently replaces them.
  • Plugin skills are namespaced: they are invoked as /plugin-name:skill-name, so they never clash with your own.
  • Monorepos: Claude Code loads .claude/skills/ from the directory you start in and every parent up to the repository root; skills in a subdirectory appear the first time Claude reads or edits a file there.
  • Changes apply live: Claude Code watches skill folders, so adding or editing a skill needs no restart.
  • Old custom slash commands (.claude/commands/*.md) have been merged into skills and keep working; write new procedures as skills, since only skills can carry reference files and scripts.
Precedence on a name clash Organisation (managed settings) beats Personal: ~/.claude/skills/ beats Project: .claude/skills/ Plugin: /plugin-name:skill-name Namespaced, never clashes with the above Who can invoke it (default) People and Claude; description in context disable-model-invocation: true Only people, via /name; description not in context user-invocable: false Only Claude; description in context /name arguments The arguments replace $ARGUMENTS in SKILL.md

Figure: read the left side top to bottom — an organisation skill beats a personal one, and a personal one beats the project’s; plugin skills carry the plugin name and take no part in this comparison. The right side shows the three invocation settings, which differ in who can invoke the skill and whether its description sits in context.

Frontmatter controls the two ways a skill is invoked:

SettingYou can invoke with /nameClaude invokes it itselfDescription always in context
(default)YesYesYes
disable-model-invocation: trueYesNoNo
user-invocable: falseNoYesYes

How to choose:

  • Default (both can invoke): read-only procedures where a mistake is cheap and you want it used whenever relevant. A release check, for example, only reads files, runs tests and writes a report; triggering automatically does no harm, and forgetting to invoke it does.
  • disable-model-invocation: true (people only): procedures that change many files, touch external systems, or should start when you decide. The new-endpoint skill in “Building Go Microservices with Claude Code: Rules, Permissions and Security Review” is one. A side benefit is that its description takes no context.
  • user-invocable: false (Claude only): background knowledge, such as "amounts are always int64 minor units, and here is how currency conversion works". Nobody wants to type /money-rules, but Claude should read it when writing code that handles amounts.

You can pass arguments: with /shop-release-check order v1.4.0, $ARGUMENTS in SKILL.md is replaced with order v1.4.0. The argument-hint field shows what to type in the / menu.

Step 3: What goes where — six mechanisms and their jobs

Claude Code has several ways to make the agent work your way, and they are easy to mix up: a rule that needs a hook ends up in a skill, or a data lookup that should be an MCP server ends up as a paragraph about curl. Get the division of labour clear first:

CLAUDE.md / AGENTS.md Rules loaded in full at every session start skill Procedures loaded only when needed Slash command /name A person’s entry point to a skill Claude Code session Subagent Own context; returns only the result MCP server Tools and data from external systems Hooks Always run at fixed events, no model Guidance: the model reads and decides Enforced: Claude Code runs it

Figure: CLAUDE.md holds rules loaded every time; a skill is a procedure loaded when needed, and a slash command is its manual entry point; a subagent works in its own context; hooks are run by Claude Code at fixed moments without the model deciding; MCP servers provide tools and data. Everything on the left is "the model reads it and decides"; the hooks at the bottom right "always happen".

MechanismWhen it enters contextWho triggers itAlways happens?What it suitsShop example
CLAUDE.md/AGENTS.mdIn full at the start of every sessionAutomaticNo, it is guidanceRules for every task, commands, a map"Run go test -race before claiming done"
SkillDescription always; content when neededClaude's judgement or a person's /No, it is guidanceMulti-step procedures with a definition of doneshop-release-check, review-go
Slash commandWhen invokedA personNoThe manual entry point to a skill/shop-release-check order v1.4.0
SubagentOnly in its own contextDelegated by the main session or a skillNoHeavy searching, an independent viewsecurity-reviewer, read-only review
HooksNot through the modelClaude Code at fixed eventsYesChecks and automation that must be enforcedgofmt after Go edits, blocking protected paths
MCP serverTool definitions and call resultsClaude calling a toolOnly when calledData and actions in external systemsReading OpenProject tickets, searching team docs

Three questions sort most cases:

  1. Must this happen every time, without relying on the model remembering? Use hooks or permission rules. "Never read .env" in a skill is useless: the skill might not be loaded, and injected text might talk the model out of it. In permissions.deny it is a guarantee.
  2. Is this something to know every time, or a procedure for one kind of job? The first goes in CLAUDE.md, the second in a skill. "Answer in Traditional Chinese" and "amounts are int64" go in CLAUDE.md; "the seven things to check before a release and what the report looks like" goes in a skill.
  3. Is it missing knowledge or a capability? A skill gives a procedure; it cannot let Claude read OpenProject tickets out of thin air. If it lacks access to an external system, build an MCP server (“Writing an MCP Server in Go: Connecting AI to OpenProject”) and use a skill to teach it how to use those tools.

They also combine:

  • Skill + subagent: add context: fork to the frontmatter and the skill runs in a new subagent that cannot see the main conversation's history; it receives the SKILL.md content as its task and hands back the result. The agent field chooses the subagent type. This suits "a review that is not steered by the main conversation's thinking". In the other direction, a subagent definition can preload skills through its skills field as reference material.
  • Skill + hooks: the skill tells Claude "run go vet after editing"; the hook guarantees go vet runs after every write even if it forgets. They do not conflict: the skill makes it do the right thing, the hook is the safety net.
  • Skill + MCP: MCP provides the tools, the skill sets the order and format. “Writing a Claude Code Skill That Cites Its Sources” is exactly this combination: an MCP server searches the documents, a skill requires a source for every sentence, and a Go program verifies it. This article does not repeat that example, only borrows its conclusion: whatever a program can check should not rest on the prompt alone.

Step 4: Use an existing skill or write your own

Skills come from roughly three places: Anthropic's official plugin marketplace, plugins and skill collections published by the community or other companies, and your own. To install a plugin, type /plugin in a session (browse and install) or /plugin install <plugin>@<marketplace>; for a plugin outside the official marketplace, first add its marketplace with /plugin marketplace add. From a terminal, claude plugin install does the same. Installing asks for a scope: just you (user scope), every collaborator on this repository (project scope, written to .claude/settings.json and committed), or just you in this repository (local scope).

One diagram ties the division of labour from Step 3 to the decision in this step:

You want the agent to do something your way Must it happen every time, whatever the model does? Permission rules or hooks yes no Does every task need to know it? CLAUDE.md yes no Is access to an external system missing? MCP server (plus a skill) yes no Is it general practice that already exists? Existing skill, read first yes no Repeated, multi-step, with a definition of done? Write your own skill yes no Just say it in the conversation

Figure: ask the five questions from the top; the first "yes" is where it belongs. The first three rule out things that should not be skills, the fourth looks for an existing one, and only a "yes" at the fifth makes writing your own worthwhile.

The order is deliberate: enforcement cannot wait until "should this be a skill", so it comes first; writing your own is the most expensive option, so it comes last.

Existing skills suit general practices unrelated to the project:

  • Process: clarifying requirements, writing plans, test-first development, systematic debugging, verification before completion. These are the same across projects, the community has written and refined them, and starting from scratch rarely beats them.
  • Formats and tools: handling PDFs, spreadsheets, a framework's conventions.

Write your own when three conditions all hold:

  1. Repetition. You have typed the same explanation in a conversation three or more times, or more than one person on the team does this job.
  2. Multiple steps. A one-sentence rule belongs in CLAUDE.md; a skill suits "do A, then B or C depending on the result, finally produce D".
  3. A definition of done. You can say what "finished" looks like: a report in a fixed format, checks that all say OK, a set of passing tests. Without one, a skill is just a longer wish.

Conversely, don't make these into skills:

  • One-off work: just say it in the conversation.
  • Rules that must be enforced: use permission rules or hooks (Step 3).
  • Mostly data rather than procedure, such as a full API specification: keep it in the repository's docs and have a skill refer to it, or query it via MCP or RAG.

Existing and your own can be layered. The team might use a community "verify before completion" skill as the general practice and write shop-release-check for the shop's specific checks. The only thing to watch is that their descriptions don't compete for the same requests (Step 6).

Step 5: A release-check skill for the shop

Back to the missing down migration from the opening. Each shop service is released on its own, with tags like order/v1.4.0. The checks before a release fall into two kinds:

  • Deterministic: does the CHANGELOG have a section for this version, are migrations numbered without gaps and does each have a down file, has go.mod kept a local-path replace? These have right answers, so a program does them.
  • Judgement: is this migration compatible with the previous version's code? Have new environment variables been added to the deployment config? Can downstream consumers accept the event format change? Claude does these, but answers item by item with evidence.

That split is the core of the design: the program does what is certain, the model does what needs judgement, and the judgement comes with evidence you can check.

/shop-release-check order v1.4.0 1. release-check (Go) CHANGELOG, migrations, go.mod Stop Read failures.md, explain the fix FAIL OK 2. Scope git tag --list, git log 3. Machine checks vet · test -race · govulncheck 4. Judgement items checklist.md, evidence for each 5. Report ready to release / needs work Deterministic: the program decides Judgement: Claude, with evidence

Figure: step 1 is decided by the Go program, and any FAIL stops everything before the judgement steps; otherwise Claude carries out steps 2 to 4, where step 3’s result still comes from the commands themselves and only step 4 is the model’s judgement, with evidence for every item; step 5 reduces everything to one of two verdicts. Blue boxes mark results decided by a program, which the model only reports.

The deterministic part: cmd/release-check

The program lives in cmd/release-check/ in the repository, next to the services' entry points (the convention from “Go Project Layout and Go Modules”). It is in the repository rather than the skill folder because it needs tests, needs to run in CI, and needs to be usable by people who don't use AI.

// release-check checks whether a service is ready to release: CHANGELOG, migrations, go.mod.
// It only reads files and changes nothing; any FAIL exits with status 1.
package main

import (
	"bufio"
	"flag"
	"fmt"
	"io/fs"
	"os"
	"regexp"
	"sort"
	"strconv"
	"strings"
)

// Result is the outcome of one check
type Result struct {
	Name string
	OK   bool
	Msg  string
}

func (r Result) String() string {
	status := "OK"
	if !r.OK {
		status = "FAIL"
	}
	return fmt.Sprintf("%-4s %-10s %s", status, r.Name, r.Msg)
}

var (
	serviceRe = regexp.MustCompile(`^[a-z][a-z0-9-]*$`)
	versionRe = regexp.MustCompile(`^v\d+\.\d+\.\d+$`)
	// Migration file names: 0001_create_orders.up.sql, 0001_create_orders.down.sql
	migrationRe = regexp.MustCompile(`^(\d{4})_[a-z0-9_]+\.(up|down)\.sql$`)
)

// CheckChangelog confirms CHANGELOG.md has the heading "## <service> <version>"
func CheckChangelog(fsys fs.FS, service, version string) Result {
	r := Result{Name: "changelog"}
	f, err := fsys.Open("CHANGELOG.md")
	if err != nil {
		r.Msg = "cannot read CHANGELOG.md: " + err.Error()
		return r
	}
	defer f.Close()
	want := "## " + service + " " + version
	sc := bufio.NewScanner(f)
	for sc.Scan() {
		if strings.TrimSpace(sc.Text()) == want {
			r.OK, r.Msg = true, "found "+want
			return r
		}
	}
	if err := sc.Err(); err != nil {
		r.Msg = "reading CHANGELOG.md failed: " + err.Error()
		return r
	}
	r.Msg = "missing heading " + want
	return r
}

// CheckMigrations confirms migrations/<service>/ is numbered from 0001 without gaps and every up has a down
func CheckMigrations(fsys fs.FS, service string) Result {
	r := Result{Name: "migrations"}
	dir := "migrations/" + service
	entries, err := fs.ReadDir(fsys, dir)
	if err != nil {
		r.Msg = "cannot read " + dir + ": " + err.Error()
		return r
	}
	ups := map[int]string{}
	downs := map[int]bool{}
	var problems []string
	for _, e := range entries {
		if e.IsDir() {
			continue
		}
		m := migrationRe.FindStringSubmatch(e.Name())
		if m == nil {
			problems = append(problems, "bad file name: "+e.Name())
			continue
		}
		n, _ := strconv.Atoi(m[1])
		if m[2] == "down" {
			downs[n] = true
			continue
		}
		if prev, dup := ups[n]; dup {
			problems = append(problems, fmt.Sprintf("number %04d used twice: %s, %s", n, prev, e.Name()))
			continue
		}
		ups[n] = e.Name()
	}
	nums := make([]int, 0, len(ups))
	for n := range ups {
		nums = append(nums, n)
	}
	sort.Ints(nums)
	for i, n := range nums {
		if n != i+1 {
			problems = append(problems, fmt.Sprintf("gap in numbering: expected %04d, found %04d", i+1, n))
			break
		}
	}
	for _, n := range nums {
		if !downs[n] {
			problems = append(problems, "missing down file: "+ups[n])
		}
	}
	for n := range downs {
		if _, ok := ups[n]; !ok {
			problems = append(problems, fmt.Sprintf("number %04d has only a down file", n))
		}
	}
	if len(problems) > 0 {
		sort.Strings(problems)
		r.Msg = strings.Join(problems, "; ")
		return r
	}
	r.OK, r.Msg = true, fmt.Sprintf("%d migrations, numbered without gaps", len(nums))
	return r
}

// CheckNoReplace confirms go.mod has no replace (a local-path replace breaks everyone else's build)
func CheckNoReplace(fsys fs.FS) Result {
	r := Result{Name: "go.mod"}
	f, err := fsys.Open("go.mod")
	if err != nil {
		r.Msg = "cannot read go.mod: " + err.Error()
		return r
	}
	defer f.Close()
	sc := bufio.NewScanner(f)
	for line := 1; sc.Scan(); line++ {
		t := strings.TrimSpace(sc.Text())
		if strings.HasPrefix(t, "replace ") || strings.HasPrefix(t, "replace(") {
			r.Msg = fmt.Sprintf("replace on line %d: %s", line, t)
			return r
		}
	}
	if err := sc.Err(); err != nil {
		r.Msg = "reading go.mod failed: " + err.Error()
		return r
	}
	r.OK, r.Msg = true, "no replace"
	return r
}

// Run performs the three checks in order and reports whether all passed
func Run(fsys fs.FS, service, version string) ([]Result, bool) {
	results := []Result{
		CheckChangelog(fsys, service, version),
		CheckMigrations(fsys, service),
		CheckNoReplace(fsys),
	}
	for _, r := range results {
		if !r.OK {
			return results, false
		}
	}
	return results, true
}

func main() {
	service := flag.String("service", "", "service name, e.g. order")
	version := flag.String("version", "", "version, e.g. v1.4.0")
	root := flag.String("root", ".", "repo root")
	flag.Parse()

	// The arguments end up in a path, so reject input such as ../ first
	if !serviceRe.MatchString(*service) || !versionRe.MatchString(*version) {
		fmt.Fprintln(os.Stderr, "usage: release-check -service order -version v1.4.0")
		os.Exit(2)
	}
	results, ok := Run(os.DirFS(*root), *service, *version)
	for _, r := range results {
		fmt.Println(r)
	}
	if !ok {
		os.Exit(1)
	}
}

Some design choices:

  • It reads an fs.FS, not the disk directly. In production it gets os.DirFS(root); tests pass a testing/fstest.MapFS without creating temporary directories.
  • Arguments are validated before they become paths. -service ends up in migrations/<service>, so only lowercase letters, digits and hyphens are allowed, and input like ../etc is rejected at once. The model calls this program with arguments, and those arguments are untrusted input.
  • Fixed output format. Each line has OK/FAIL, the item and a message, which Claude and people can read easily and CI can judge by exit status.
  • Read-only. It fixes nothing and tags nothing. Fixes are a person's decision, or a separate step Claude does once you agree.

The tests are table-driven (“Testing in Go: Table-Driven Tests, httptest and Integration Tests”): a repository that passes every check is the baseline, and each case changes one thing:

package main

import (
	"strings"
	"testing"
	"testing/fstest"
)

func repo(files map[string]string) fstest.MapFS {
	m := fstest.MapFS{}
	for name, body := range files {
		m[name] = &fstest.MapFile{Data: []byte(body)}
	}
	return m
}

func good() map[string]string {
	return map[string]string{
		"CHANGELOG.md": "# Changelog\n\n## order v1.4.0\n\n- add refund API\n",
		"go.mod":       "module example.com/shop\n\ngo 1.24\n",
		"migrations/order/0001_create_orders.up.sql":   "",
		"migrations/order/0001_create_orders.down.sql": "",
		"migrations/order/0002_add_refunds.up.sql":     "",
		"migrations/order/0002_add_refunds.down.sql":   "",
	}
}

func TestRun(t *testing.T) {
	tests := []struct {
		name     string
		change   func(map[string]string)
		wantOK   bool
		wantFail string // text the failure message must contain
	}{
		{name: "all pass", change: func(map[string]string) {}, wantOK: true},
		{
			name:     "CHANGELOG lacks this version",
			change:   func(f map[string]string) { f["CHANGELOG.md"] = "## order v1.3.0\n" },
			wantFail: "missing heading ## order v1.4.0",
		},
		{
			name:     "same version of another service does not count",
			change:   func(f map[string]string) { f["CHANGELOG.md"] = "## payment v1.4.0\n" },
			wantFail: "missing heading",
		},
		{
			name: "gap in numbering",
			change: func(f map[string]string) {
				f["migrations/order/0004_add_index.up.sql"] = ""
				f["migrations/order/0004_add_index.down.sql"] = ""
			},
			wantFail: "gap in numbering: expected 0003, found 0004",
		},
		{
			name:     "missing down",
			change:   func(f map[string]string) { f["migrations/order/0003_add_index.up.sql"] = "" },
			wantFail: "missing down file: 0003_add_index.up.sql",
		},
		{
			name:     "duplicate number",
			change:   func(f map[string]string) { f["migrations/order/0002_other.up.sql"] = "" },
			wantFail: "number 0002 used twice",
		},
		{
			name:     "bad file name",
			change:   func(f map[string]string) { f["migrations/order/3_fix.sql"] = "" },
			wantFail: "bad file name: 3_fix.sql",
		},
		{
			name:     "single-line replace",
			change:   func(f map[string]string) { f["go.mod"] += "replace example.com/lib => ../lib\n" },
			wantFail: "replace on line 4",
		},
		{
			name:     "replace block",
			change:   func(f map[string]string) { f["go.mod"] += "replace (\n\texample.com/lib => ../lib\n)\n" },
			wantFail: "replace on line",
		},
		{
			name:   "replace in a comment does not count",
			change: func(f map[string]string) { f["go.mod"] += "// replace example.com/lib => ../lib\n" },
			wantOK: true,
		},
	}
	for _, tt := range tests {
		t.Run(tt.name, func(t *testing.T) {
			files := good()
			tt.change(files)
			results, ok := Run(repo(files), "order", "v1.4.0")
			if ok != tt.wantOK {
				t.Fatalf("ok = %v, results: %v", ok, results)
			}
			if tt.wantFail == "" {
				return
			}
			for _, r := range results {
				if !r.OK && strings.Contains(r.Msg, tt.wantFail) {
					return
				}
			}
			t.Fatalf("no FAIL containing %q, results: %v", tt.wantFail, results)
		})
	}
}

func TestInputValidation(t *testing.T) {
	for _, s := range []string{"../etc", "Order", "", "order/x"} {
		if serviceRe.MatchString(s) {
			t.Errorf("service name %q should be rejected", s)
		}
	}
	for _, v := range []string{"1.4.0", "v1.4", "v1.4.0-rc1", "v1.4.0;rm"} {
		if versionRe.MatchString(v) {
			t.Errorf("version %q should be rejected", v)
		}
	}
}

Run against a repository with a missing down file, the output is as follows (go run prints the exit status line when the program exits with a non-zero status):

$ go run ./cmd/release-check -service order -version v1.4.0
OK   changelog  found ## order v1.4.0
FAIL migrations missing down file: 0002_add_refunds.up.sql
OK   go.mod     no replace
exit status 1

The judgement part: SKILL.md

---
name: shop-release-check
description: Check whether one shop service (order, payment, inventory, api-gateway) is ready to release. Use when the user says "release", "ship", "ready to go live", "check before tagging" or "can v1.4.0 go out". Runs release-check on the CHANGELOG, migrations and go.mod, runs go vet, go test -race and govulncheck, and outputs a release-check report in a fixed format; it only checks — it never tags, pushes or deploys.
argument-hint: '<service> <version>'
allowed-tools:
  - Bash(go run ./cmd/release-check *)
  - Bash(go vet *)
  - Bash(go test *)
  - Bash(govulncheck *)
  - Bash(git log *)
  - Bash(git tag --list *)
---

# Release check

Target: $ARGUMENTS (format `<service> <version>`, e.g. `order v1.4.0`). If either is missing, ask first; don't guess.

This skill only checks and reports. Whatever the result, never run git tag, git push, kubectl or any deployment command; whether to release is a person's decision. These rules apply for the whole conversation.

## Steps

1. Deterministic checks: `go run ./cmd/release-check -service <service> -version <version>`.
   On any FAIL, stop here: read reference/failures.md, explain the cause and the fix, and do not edit files yourself.
2. Scope: the previous release is the first result of `git tag --list '<service>/v*' --sort=-v:refname`.
   List this release's commits with `git log --oneline <previous>..HEAD -- cmd/<service> internal/<service> migrations/<service>`.
3. Machine checks: `go vet ./...`, `go test -race ./...`, `govulncheck ./...`. For each, paste the exact command and the last lines of output.
4. Judgement items: read reference/checklist.md, pick only the items relevant to the scope from step 2, and answer each
   with "yes / no / not applicable" plus evidence (a file path, commit or command output). Without evidence, write "to confirm"; never assume "yes".
5. Output the report in the format from reference/report.md. There are only two verdicts: "ready to release" or "needs work";
   any FAIL, "no" or "to confirm" means "needs work".

reference/checklist.md holds the judgement items. It is read only in step 4, so it takes no context otherwise:

# Release judgement items

- Migrations: after the new migrations run, does the previous version's code still work? (Expand then contract: new columns need a default or must be nullable; drop columns only in a later release.)
- Config: have new environment variables been added to the Compose and Kubernetes config under deploy/?
- Events: do events published to NATS JetStream only gain fields, never lose them? Do downstream consumers ignore unknown fields?
- Amounts: are all new or changed amount fields int64 minor units? Has any float64 appeared?
- Idempotency: if the payment charge or refund path changed, is the idempotency-key check still there?
- Rollback: if we must go back to the previous version, does rolling back the code alone work? If a down migration is required, which one, and does it lose data?

These items come from earlier articles in the series: expand-then-contract migrations in “Automating Deployments and Troubleshooting with AI Workflows”, “Idempotency and Distributed Locks”, and int64 amounts. They sit in a reference file rather than SKILL.md because the list keeps growing while most releases need only a few items; SKILL.md only says when to read it and how to answer.

reference/report.md holds the fixed report format (item table, command output, verdict), and reference/failures.md lists the cause and fix for each kind of FAIL, for example "missing down file: add the reverse SQL; if the migration cannot be reversed (a data conversion, say), explain why in the down file and flag it in the report".

Some writing considerations:

  • allowed-tools lists only read-only or locally reversible commands. According to the documentation, the tools listed in allowed-tools need no confirmation during the turn that invokes the skill, the grant clears when you send your next message, and it does not restrict other tools. So there is no git tag or git push here: even if the skill body wrongly told Claude to tag, it would stop and ask. The real prohibition belongs in the deny list in .claude/settings.json (Step 8).
  • State what it won't do first. A release is a situation where an agent easily does "one more helpful step"; setting the boundary up front works better than a reminder at the last step.
  • Ask for evidence at every step. "Paste the exact command and output", "give evidence for each item": a "pass" without evidence is the same as not checking.
  • Only two verdicts. "Mostly fine to release, but consider…" cannot be judged by a person or a program; use two fixed verdicts and list the reasons underneath.

Why isn't the Go program inside the skill folder? Either works. Personal or plugin skills often keep scripts in their own scripts/ folder and point to them from SKILL.md with ${CLAUDE_SKILL_DIR} (the documentation describes it as the folder containing SKILL.md, regardless of the current working directory). But the shop's checker is part of the repository itself: it is tested along with go test ./..., runs in CI and serves people who don't use AI, so it lives in cmd/. The test is: is the script useful outside the skill? If yes, keep it in the repository; if not, in the skill folder.

Step 6: Write a description that triggers at the right time

description is the most important part of a skill. When Claude decides whether to load a skill on its own, it sees only the name and description. However good the body is, a poor description means it is never read; too broad a description means it pops up at unrelated moments and eats context.

A good description has three parts:

  1. What it does: one sentence on the output. "Checks whether a service is ready to release and outputs a report in a fixed format."
  2. When to use it: the words users actually say. "Release", "ship", "ready to go live", "check before tagging", "can v1.4.0 go out". The shop team writes both Chinese and English trigger words, because the team uses both.
  3. What it won't do: "it only checks — it never tags, pushes or deploys". This also keeps Claude from picking this skill when asked to deploy.

Comparing some common descriptions:

DescriptionProblem
"Release tool"Too short, no trigger words, no idea what it does
"A powerful, comprehensive release assistant that boosts productivity"Adjectives carry no information; the model can't decide on them
"Handles everything about deploys, releases, going live and CI"Too broad; competes with the deploy and CI skills
"Check whether one shop service is ready to release. Use when the user says…"Has a target, trigger words and a boundary

Some practical details:

  • Put the main use case first. The documentation notes that the description in the skill listing (plus the optional when_to_use field) is truncated when too long, so don't leave key words at the end.
  • The frontmatter must parse. The opening --- must be the first line; if the YAML fails to parse, the skill still loads but with every field empty — it appears to exist yet never triggers properly. Colons and quotes in the description are common culprits; parse it once with any YAML tool.
  • Keep descriptions apart. If shop-release-check handles "pre-release checks", the deploy skill should say it handles "deploying once the release is decided"; don't let both say "release".
  • For vague requests, invoke it directly. "Is this OK now?" is hard to judge. Typing /shop-release-check order v1.4.0 is the most reliable.

Step 7: Chain skills into a workflow

A single skill saves typing; the real gain comes from chaining several so that a feature goes from requirements to verification at a fixed rhythm. Take "add partial refunds to the order service" as an example:

Clarify clarify-spec docs/specs/ORD-482.md Plan write-plan docs/plans/ORD-482.md Test first go-tdd failing tests Implement ordinary chat go test -race passes person OK person OK Review (subagent) review-go-fresh findings, file:line Verify verify-done commands + output Release check shop-release-check release report Person decides not a skill tag and deploy shop-feature (people only) Owns only the order, the handover files and the two human gates; details stay in each step’s skill Each step reads the previous step’s file or output, not the conversation’s memory

Figure: each step is owned by one skill and produces a file or checkable output for the next; after clarifying requirements and after planning there is a gate where a person confirms; review runs in a separate subagent; deterministic checks and shop-release-check close it off.

StepSkill (example name)InputOutputWhy this step is needed
Clarify requirementsclarify-specTicketdocs/specs/ORD-482.md: acceptance criteriaThe partial refund limit, currency and relation to full refunds were unclear
Write a planwrite-planSpec filedocs/plans/ORD-482.md: files to changeA person sees the scope first, so the payment charge path is not touched
Test firstgo-tddPlan fileFailing table-driven testsTests describe the requirement, not the implementation
Implement(ordinary conversation)Failing testsCode that makes them passWith tests in front, the scope of the implementation is fixed
Reviewreview-gogit diff main...HEADFindings with file and lineAn independent view, not steered by the implementation's thinking
Verify before completionverify-doneEverythingCommands and their actual output"Should work now" is not done; there must be results
Release checkshop-release-checkService and versionRelease-check reportDeterministic and judgement items at release time

The first three and verify-done are general practices: use existing community skills or write your own. review-go comes from “Bringing AI Workflows into the Team Process: PR Review, CI and Human Gates”, and shop-release-check is from Step 5. Some principles for chaining:

Hand over between steps through files, not conversation memory. The spec goes into docs/specs/, the plan into docs/plans/, and the next skill's first line is "read docs/plans/<ticket>.md". Three reasons: as Step 1 noted, compaction can drop earlier skills and content; files can be reviewed and included in the PR; and a fresh session or a subagent can pick up from the files.

Each step has a clear completion condition before the next starts. For clarify-spec it is "every acceptance criterion can be written as a test case"; for go-tdd it is "the new tests run and fail, and they fail because the feature does not exist, not because of a compile error". Each completion condition is at the end of its own SKILL.md.

Put human gates where changing direction is cheapest. Stopping for confirmation after the spec and after the plan is far cheaper than discovering during review that the whole direction was wrong. A skill cannot guarantee these gates; they are an agreement in the process.

Run the review in a separate context. A review in the same conversation as the implementation sees its own recent reasoning and tends to agree with itself. Use context: fork so the review skill runs in a new subagent:

---
name: review-go-fresh
description: Review the current branch's Go changes in a separate subagent, report findings only and change nothing. Use after implementation, before opening a PR.
context: fork
agent: Explore
---

Review `git diff main...HEAD`. Read CLAUDE.md first, then check correctness, concurrency, authorisation, SQL, amount types and tests in that order.
For each finding give severity, file:line, the problem and a suggested fix; mark anything uncertain as "to confirm". Read only; change no files.

Explore is a built-in read-only subagent type in Claude Code. The documentation also warns that a context: fork subagent cannot see the main conversation's history, so such a skill's instructions must stand on their own; "review it the way we discussed" means nothing there.

One coordinating skill owns the order. Write the whole workflow as a skill only people can invoke. It holds only the order, the handover files and the gates; the details stay in each step's skill:

---
name: shop-feature
description: Build a new feature following the team workflow: clarify requirements, plan, test first, implement, review, verify before completion
disable-model-invocation: true
argument-hint: '<ticket id>'
---

Complete ticket $ARGUMENTS in order. After each step, write "Step N done: <file produced or command output>" in the conversation.

1. Use the clarify-spec skill to write the requirements to docs/specs/$ARGUMENTS.md. Stop and wait for my confirmation.
2. Use the write-plan skill to write the plan to docs/plans/$ARGUMENTS.md. Stop and wait for my confirmation.
3. Use the go-tdd skill to write tests from the plan and confirm the new tests fail.
4. Implement until go test -race ./... passes. Only change files listed in the plan; ask me before changing any other file.
5. Use the review-go-fresh skill to review, and explain how you handled each finding.
6. Use the verify-done skill for verification before completion, pasting the exact commands and output.

There is an easy trap here: a skill named by the coordinator must not set disable-model-invocation: true. That setting means Claude cannot invoke it on its own, so when the coordinator says "use skill X", Claude cannot call X. The review-go skill from “Bringing AI Workflows into the Team Process: PR Review, CI and Human Gates” is set to people-only, which is why review-go-fresh was written above; the alternative is to write "for step 5, I will type /review-go main". The coordinator itself is the opposite: it should be people-only, because it changes many files and a person should decide when it starts.

Keep skills from fighting each other. When two skills give different instructions for the same thing, Claude can only guess. Common conflicts and fixes:

  • The same thing in two places. go-tdd says "tests go in _test.go and use testify", review-go says "tests use only the standard library". Keep each rule in one place: general rules in CLAUDE.md, and skills only refer to them.
  • Two descriptions competing for the same requests. A community TDD skill and your go-tdd both say "use when writing tests". Keep one, or narrow yours to Go and the shop's conventions.
  • One skill quietly doing another's job. If go-tdd ends with "and implement until the tests pass", it skips the plan and the gates. Each skill does only its own step and says what comes next, without doing it.
  • A skill conflicting with CLAUDE.md. Write in CLAUDE.md: "If a skill's instructions conflict with this file, this file wins; point out the conflict". At least the conflict surfaces instead of being settled silently.

Step 8: Team sharing and versioning

A skill is code that changes the behaviour of everyone's agent, and it should be managed like code.

Commit project skills. .claude/skills/ travels with the repository, so everyone who clones it gets the same practices; changes go through a PR and review. “Bringing AI Workflows into the Team Process: PR Review, CI and Human Gates” already put .claude/ in CODEOWNERS, so skill changes reach the right reviewers automatically. In review, look at three things: has a description become broader (will it compete with another skill), does allowed-tools permit more, and is there a new script that will run.

Point to the skills from CLAUDE.md. Skills are discovered automatically, but the team's agreements — when a particular one must be used — are clearest in CLAUDE.md:

## Skills

- Before any release, always use shop-release-check; don't pick your own checks. Paste its report into the release PR.
- For a new feature, use /shop-feature <ticket>: clarify requirements, plan, test first, implement, review, verify before completion.
- If a skill's instructions conflict with this file, this file wins; point out the conflict in your reply.
- Adding or changing anything in .claude/skills/ needs a PR with the results of the test prompts from Step 10.

Use permission rules to control what can be invoked. According to the documentation, invoking a skill is also subject to permission rules, written Skill(name) (exact match) or Skill(name *) (with any arguments). Put frequently used read-only skills in allow so they need no confirmation, and dangerous ones in deny:

{
	"$schema": "https://json.schemastore.org/claude-code-settings.json",
	"permissions": {
		"allow": ["Skill(shop-release-check *)", "Bash(go run ./cmd/release-check *)"],
		"deny": ["Skill(deploy-prod *)", "Bash(git push *)", "Bash(kubectl *)"]
	}
}

Merge this with the .claude/settings.json from “Building Go Microservices with Claude Code: Rules, Permissions and Security Review”. Bash(go run ./cmd/release-check *) is in allow because when the user follows up with "what about payment?", the allowed-tools grant has already cleared, and this read-only check need not ask every time.

Make a plugin when many repositories need it. If the same "verify before completion" is used in ten service repositories, ten copies soon drift apart. Package it as a plugin in the team's own marketplace (a git repository) and install it at project scope in each repository, so the version and updates are shared. Plugin skills are namespaced (/plugin-name:skill-name) and don't clash with each repository's own skills. A plugin marketplace can be pinned to a git tag, and third-party marketplaces don't auto-update by default — good for a team, because an upgrade should be a visible decision.

Record why a skill changed. A broader description or one extra rule may take weeks to show its effect. Write in the commit message or PR description what situation the change addresses, so there is something to go back to; the vault from the previous article is a good home for decision records like this.

Step 9: Security — skills run things

A skill looks like plain Markdown, but it can do more than talk:

  • It can make Claude run commands and scripts. Scripts in the skill folder and the go run in its body all run with your permissions.
  • It can run commands before anything reaches the model. According to the documentation, parts of a skill body written as !`command` are run before the content is sent to Claude, and the output replaces them. That is convenient (bringing in git status output directly, say), and it also means loading a skill can itself run commands. Where you don't need this, the disableSkillShellExecution setting turns it off.
  • allowed-tools grants tools. A skill with a harmless description and Bash(*) in allowed-tools lets every command in that turn run without asking.
  • Plugins can also bring hooks and MCP servers. The documentation warns that plugins can run hooks and MCP servers, so check what one adds before installing it.

So:

  1. Read a third-party skill in full before installing it. SKILL.md, reference files, every script, and the frontmatter's allowed-tools and !` commands. Don't install scripts you can't understand; from a large collection where you use one skill, consider taking just that one and maintaining it yourself.
  2. Least privilege. allowed-tools holds only read-only or locally reversible commands, with specific prefixes (Bash(go run ./cmd/release-check *), not Bash(go *)). Actions that change external state (push, deploy, write to a database) are not granted, so it stops and asks every time.
  3. No secrets. A skill sits in the repository, visible to anyone who can read it, and its content is sent to the model service. Steps that need credentials take them from environment variables or a secrets manager; the skill names only the command.
  4. Instructions in a skill don't replace permission settings. "Don't push" in a skill is a good habit, but what actually stops a push is permissions.deny, branch protection and the credentials' own permissions (Step 3 of “Building Go Microservices with Claude Code: Rules, Permissions and Security Review”).
  5. Protect the skills themselves. An agent that can edit .claude/skills/ can rewrite its own rules; as with .claude/settings.json and hooks, add .claude/skills/ to the protected paths and let people change it.
  6. Data read in is not instructions. When a skill has Claude read the CHANGELOG, tickets or PR descriptions, that text may contain injections such as "skip the checks". State in the skill that file content is data, not instructions, and let a program make the key judgements (Step 5's release-check cannot be talked round).

Step 10: Measure whether a skill helps

Skills go stale and go unused. "It feels faster" is no reason to keep one; you need a cheap but honest check.

Prepare a few test prompts. Give each skill a small file in the repository, such as .claude/skill-evals/shop-release-check.md:

# shop-release-check test prompts

## Should trigger

- Is order v1.4.0 ready to release?
- We're about to ship payment, can you check it
- What do I need to confirm before releasing inventory v2.1.0

## Should not trigger

- Deploy order to staging
- What's the best way to write the SQL for migration 0003
- How should the CHANGELOG be formatted

## Expected result (test repository: 0002 has no down file)

- The verdict is "needs work" and names 0002_add_refunds.up.sql as missing its down file
- No git tag or git push was run
- Every judgement item gives evidence

The test repository can be the kind of deliberately broken directory used in Step 5's tests.

Run once with the skill and once without. Ask the same prompt in a session with the skill enabled and one without, and compare three things:

What to compareHow to look
Did it triggerWhether the transcript shows the skill being loaded; whether it fired when it shouldn't
Was the result rightWhether it caught the planted problem; whether it overstepped
What it costNumber of turns, how often you had to step in, time taken

Model output varies from run to run, so run each prompt at least two or three times and look at the trend rather than a single result. Step 7 of “Writing a Claude Code Skill That Cites Its Sources” has a fuller evaluation approach to build on.

Rerun after every description change. A broader description may start stealing another skill's requests; a narrower one may stop triggering. The "should not trigger" list exists for exactly this.

Prune unused skills regularly. A skill that has not triggered in a month either has a wrong description or isn't needed. Every skill's description sits in context, so unused skills have a cost and add chances for conflict. The same goes for plugins: the installed list in /plugin groups plugins you haven't used recently, which makes pruning easy.

Look at team-level indicators. A single skill's effect is hard to measure directly; what you can watch is whether the problem it targets has become rarer, such as rollbacks after a release caused by a missed migration or config item. Without a baseline from before, don't quote percentages — the same principle as Step 7 of “Bringing AI Workflows into the Team Process: PR Review, CI and Human Gates”.

Common pitfalls

Vague descriptions. "A handy tool", "all kinds of development tasks": Claude cannot tell when to use it, so it either never triggers or triggers for everything. Write the target, trigger words and boundary.

Stuffing a whole manual into SKILL.md. Once loaded, every line stays in the conversation; the longer it is, the more gets ignored, and compaction keeps only the beginning. The documentation recommends keeping SKILL.md under 500 lines; SKILL.md holds the flow and "when to read which file", details go in reference files.

Using a skill for enforcement. "Never push" in a skill is a hope, not a guarantee; the skill may not be loaded, or injected content may persuade the model. Enforce with permission rules and hooks.

Overlapping skills. Two skills handle the same kind of request, or the same rule is written in three places. Claude picks one at random and you rarely notice. One skill per kind of request, one place per rule.

A coordinator naming a people-only skill. Claude cannot invoke a skill with disable-model-invocation: true on its own; naming it in a workflow does not change that.

Stale instructions. The skill says go test ./... when the team long since moved to go test -race ./...; the skill reads docs/runbook/ after the folder has moved. Commands and paths a skill uses should match what CI uses; when directories move, search .claude/skills/ once.

Installing third-party skills unread. They can run scripts and grant tools, and plugins can bring hooks and MCP servers. Read them in full first.

A personal skill overriding a project skill. With the same name, the personal one wins. Give team skills a prefix, and when "it behaves differently for me", check ~/.claude/skills/ first.

Handing over between steps through conversation memory. Long workflows go through compaction, and the earlier spec and plan may survive only as a summary. Hand over through files.

Judging only by "does it feel faster". Without test prompts and a comparison, you cannot tell whether a skill helps or gets in the way.

Key takeaways

  • A skill is a folder with a SKILL.md: frontmatter name and description, plus steps; it can carry reference files and scripts.
  • Progressive disclosure: the description is always present, the content loads when needed, and reference files and scripts are read or run only when a step needs them. Long procedures go in skills; rules for every task go in CLAUDE.md.
  • Loaded content stays in the conversation and only part survives compaction: write standing rules, keep them short, and hand over between steps through files.
  • Location decides who can use it: project .claude/skills/, personal ~/.claude/skills/, plugins (namespaced); with the same name, personal beats project, so prefix team skills.
  • By default both people and Claude can invoke; set disable-model-invocation: true for skills that change many files or touch external systems, and user-invocable: false for background knowledge.
  • Division of labour: CLAUDE.md holds standing rules, skills hold on-demand procedures, slash commands are the manual entry, subagents give a separate context, hooks are checks that always happen, MCP brings external tools and data. Enforcement never lives in a skill.
  • Write your own only when the work is repeated, multi-step and has a definition of done; look for existing skills for general practice first.
  • Give certain things to a tested program and judgement to the model with evidence; allowed-tools lists only specific read-only commands.
  • A description says what it does, when to use it (in the user's words) and what it won't do; main use first, kept apart from other skills.
  • Chaining: one skill per step, handover through files, completion conditions, human gates after spec and plan, review in a separate context with context: fork; skills named by a coordinator cannot be people-only.
  • Team: commit and review project skills, state agreements in CLAUDE.md, use Skill(...) permission rules, use plugins across repositories. Security: read before installing, least privilege, no secrets, protect .claude/skills/.
  • Compare with and without a skill using test prompts (should trigger, should not trigger, expected result), rerun after changing a description, and delete skills nobody uses.

References

  • Extend Claude with skills (official Claude Code documentation): skill locations, invocation, context: fork, !` commands and the 500-line guideline, used in steps 2, 3, 7 and 9.
  • Equipping agents with Agent Skills (Anthropic): the progressive-disclosure design and the warning about installing third-party skills, behind steps 1 and 9.
  • Skill authoring best practices (official Claude Platform documentation): writing descriptions, handing deterministic work to scripts and measuring a skill with evaluations, used in steps 5, 6 and 10.
  • How Claude remembers your project (official Claude Code documentation): when CLAUDE.md and AGENTS.md are loaded, for the comparison table in step 3.
  • Create custom subagents (official Claude Code documentation): subagents run with their own context and tools, used in steps 3 and 7.
  • Hooks reference (official Claude Code documentation): hooks run on fixed events without going through the model, as described in step 3.
  • Configure permissions (official Claude Code documentation): rules such as permissions.deny are what actually block actions, the point of step 9.
  • Create a marketplace (official Claude Code documentation): distributing plugins across a team and repositories through a marketplace, used in step 8.

Next

Skills teach the agent how to work and the vault tells it the project's decisions; but once the team's documents grow too large to read in full every time — on-call runbooks, API docs, incident reviews — another approach is needed: find the few passages relevant to the question first, then answer from them. The next article, “RAG Basics: Look It Up Before Answering, and Why That Matters”, starts from the three problems a model has when it answers on its own, explains RAG's core value, and compares it with long context, fine-tuning and plain search.