Logo van Agent Instructions

Agent Instructions

Community
murphytrueman
agent-instructions

Write the AGENTS.md that tells coding agents how to use this design system: where things live, sourced rules, how to check work, what not to do; Claude, Cursor or Copilot pointers on request. Triggers: AGENTS.md for our system, make it AI-navigable, agent instructions. Inventory: codebase-index.

Overzicht

Uitgevermurphytrueman
Repositorydesign-system-ops
Skillnaamagent-instructions
Sterren
211
Forks
7
Meegeleverde bestanden
Alleen instructies
LicentieMIT
Links
  • Instructies in Markdown

    Een SKILL.md-bestand dat het model laadt wanneer nodig, zodat het alleen tokens kost als een verzoek er daadwerkelijk bij past.

  • Werkt met elk LLM

    AI-skills zijn gewone Markdown, geen aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • Compleet zonder extra bestanden

    Alles wat het model nodig heeft, staat in de instructies — geen extra bestanden om te synchroniseren.

  • Open source

    Gepubliceerd door murphytrueman op GitHub. Lees de broninhoud voordat je de skill installeert.

Installatie

Installeer de AI-skill Agent Instructions in TypingMind om deze met elke LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map — het leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/murphytrueman/design-system-ops/tree/main/skills/agent-instructions
  4. Schakel de skill in elke chat in waarin je deze beschikbaar wilt hebben.
Plug-ins → Skills → Nieuwe skill → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/murphytrueman/design-system-ops.git /tmp/design-system-ops
mkdir -p .claude/skills
cp -r /tmp/design-system-ops/skills/agent-instructions .claude/skills/agent-instructions
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Agent Instructions in een willekeurige chat in TypingMind in en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek erbij past, laadt het model zelf de volledige instructies — je hoeft de skill nooit handmatig aan te roepen en deze kost pas tokens wanneer je de skill daadwerkelijk gebruikt.

Het model laadt Agent Instructions automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Agent Instructions niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

Agent instructions

A skill for writing the file coding agents actually read: an AGENTS.md at the repository root that tells an agent where the system's parts live, which rules apply and where each rule comes from, how to check its work, and what not to do. It links to the machine-readable files other skills produce (.ai/index/, .ai/metadata/, decision pages, token files) rather than copying them, so there is one place to keep current.

Before you begin: verify references

Confirm that every path in this skill's frontmatter references: exists relative to this SKILL.md. If any is missing, stop: the install is incomplete, usually because a flattening installer (for example npx skills install) dropped the repo-root knowledge-notes/ directory. Tell the user to reinstall by a method in 1-INSTALL.md and run verify-install.sh from the install root. Proceed without the references only if the user explicitly says to, and then say in the output that it was produced without the pack's reference material.

Context

Agents working in a codebase read a small set of conventional files first: AGENTS.md, CLAUDE.md, .cursor/rules/, .github/copilot-instructions.md. Design system knowledge that isn't reachable from one of those is invisible at the moment it matters: the agent picks a component, types a colour, or writes a test from what it can see, and what it can see is props and values, not intent. The design system loses the argument it never got to make.

The fix is not more files in .ai/. It is one short file the agent will read, with pointers to the rest, and rules that are the team's own. Long instruction files get skimmed; unsourced rules get treated as suggestions or, worse, as policy the team never set.

Boundaries

This skill writes instructions; it doesn't build the inventory (codebase-index), the per-component metadata (metadata-schema-generator), the token docs (token-documentation) or the choosing-between pages (component-decision-tree). It links to those when they exist and names them as the next step when they don't. If the system has no components, tokens or docs to point at yet, there is nothing to instruct; say so.

Configuration

If .ds-ops-config.yml exists, follow the configuration-and-recurring knowledge note (../../knowledge-notes/configuration-and-recurring.md). This skill reads:

  • system.name, system.framework, system.styling, system.component_paths, system.tokens
  • agent_instructions.path — where to write the file (default AGENTS.md at the repo root)
  • agent_instructions.pointers — extra entry points to write, each a one-line file that says "read AGENTS.md" (default: none; ask)

Step 1: Inventory what an agent could be pointed at

Look before writing. Record the path of each thing found, or that it wasn't found:

  • Existing instructions: AGENTS.md, CLAUDE.md, .cursor/rules/*, .github/copilot-instructions.md, .windsurfrules, a docs/ai/ folder. If any exists, this skill updates it: keep what the files confirm, replace what they contradict, and say what changed. Never write a second file that competes with one the team already maintains.
  • Machine-readable outputs from this pack: .ai/index/ (inventory and graph), .ai/metadata/ (per-component props, a11y contracts), .ai/decision-trees/ or the markdown choosing pages, .ai/tokens/ if token-documentation wrote one.
  • The system itself: component source directories and the barrel export; the token source and its consumption form (custom properties, JS module, Tailwind theme, Sass); the docs site or Storybook URL from the README; CONTRIBUTING.md; CHANGELOG.md.
  • Enforcement that already exists: ESLint and Stylelint configs (a declaration-strict-value rule, no-restricted-imports, jsx-a11y), lint and test scripts in package.json, CI workflow names. These are the rules that are already true; the file should tell the agent to run them.
  • Written rules: contribution guidelines, an accessibility policy, a content or voice guide, decision records. Each is a source a rule can cite.

Step 2: The provenance rule

Every rule in the file carries its source in brackets: a file path, a URL, a decision record id, or team when the user stated it in this session. A rule with no source is not written as a rule. If it's worth keeping, it goes in a final "Proposed, not yet policy" list with a one-line reason, for the team to accept or delete. Agents treat the file as the system's actual policy; an invented rule becomes policy the moment it's written down. See "Every figure and fact needs a source" in the output-discipline note.

Step 3: Write AGENTS.md

Keep it under about 150 lines. Real paths, real names, no placeholders except [confirm: …] where the team hasn't answered, listed at the top. Structure:

markdown
# Working with [System name]

Still to confirm: [list of `[confirm: …]`, or "none"]

## What this is
[Two sentences: what the system provides, who owns it, the docs URL.]

## Where things live
- Components: `src/components/` — exported from `src/index.ts`
- Tokens: `tokens/*.tokens.json` (DTCG), consumed as CSS custom properties from `src/styles/tokens.css`
- Component inventory and dependency graph: `.ai/index/` (run `codebase-index` to refresh)
- Per-component props and accessibility contracts: `.ai/metadata/`
- Choosing between components: `docs/choosing/` [or "not written yet"]
- Docs / Storybook: [URL]

## Use these, not those
- Use exported components from the package; don't re-implement or copy source. [CONTRIBUTING.md#local-components]
- Use semantic tokens (`--color-action-primary`, `--space-inset-md`), never raw values and never primitives (`--color-blue-500`). [tokens/README.md]
- When a component or variant doesn't exist: [the contribution route]. Don't build a local one. [CONTRIBUTING.md]

## Rules
[One line each, each with a source. Only what the team has actually written down or stated.]

## Accessibility
[The system's guarantee and standard, with source; where per-component contracts live; what stays the consumer's job.]

## Check your work
- `npm run lint` (ESLint: `no-restricted-imports`, `jsx-a11y`; Stylelint: `declaration-strict-value`)
- `npm test`
- [any design-system-specific check, from package.json]

## Don't
[Three to six concrete don'ts with sources, e.g. no `!important` on token-driven properties, no `jest.mock` of the design system package.]

## Proposed, not yet policy
[Unsourced rules the team should accept or delete, each with a one-line reason. Delete this section when empty.]

Write the content from Step 1's findings. Where a section has nothing to say (no .ai/metadata/, no accessibility policy), write the honest one-liner ("not written yet; run metadata-schema-generator") rather than inventing a contract.

Step 4: Entry-point pointers (only when asked)

Some tools read their own file first. If agent_instructions.pointers lists them, or the user asks, write each as a pointer, never a copy, so AGENTS.md stays the single source:

  • CLAUDE.md: "Read AGENTS.md before working with the design system."
  • .cursor/rules/design-system.mdc: frontmatter with alwaysApply: true and the same one line.
  • .github/copilot-instructions.md: the same one line.

If one of these already exists with its own content, append the pointer; don't replace the file.

Step 5: Summarise in chat

  • Headline: the file written or updated, and how many rules it holds with sources versus proposed
  • Files: every path written, and every existing file appended to
  • Linked, not copied: which .ai/ and docs artefacts the file points at, and which don't exist yet
  • Scope: the block from the output-discipline note: what was inspected, what wasn't, and every [confirm]

Quality checks

  • The file is under about 150 lines and every path in it exists in the repository
  • Every rule has a source in brackets; unsourced rules are in "Proposed, not yet policy" or absent
  • Token and component names in the examples are the system's real names, taken from the source
  • "Check your work" lists commands that exist in package.json, not aspirational ones
  • Machine-readable files are linked, never duplicated into the instructions
  • An existing instructions file was updated in place, and the summary says what changed
  • Nothing in the file describes a generic design system; a reader could tell which system it is from any section

Veelgestelde vragen

Wat doet de AI-skill Agent Instructions?

Write the AGENTS.md that tells coding agents how to use this design system: where things live, sourced rules, how to check work, what not to do; Claude, Cursor or Copilot pointers on request. Triggers: AGENTS.md for our system, make it AI-navigable, agent instructions. Inventory: codebase-index.

Waarom Agent Instructions gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Agent Instructions bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model, en je kunt midden in een chat van model wisselen zonder dat de skill niet meer werkt. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Agent Instructions in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/murphytrueman/design-system-ops/tree/main/skills/agent-instructions. TypingMind leest het bestand SKILL.md en installeert het als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Agent Instructions gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Agent Instructions gebruiken?

Zoveel als je wilt. Zolang een model skills ondersteunt, kun je Agent Instructions ermee gebruiken: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama en meer. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Agent Instructions gratis?

Ja. Deze skill is door murphytrueman op GitHub gepubliceerd onder de licentie MIT. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. Deze volgt het open Agent Skills-formaat: een bestand met de naam SKILL.md met een naam en beschrijving, plus eventuele scripts, sjablonen of referentiebestanden die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Toon alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇