agentleFS
dev-ikdev-ik/ai-design-rules/skills/agent-context/SKILL.md

agent-context

Skill3 starsChanged 37 days agoMITView on GitHub

Retrieve concise, graph-backed design context from AI Design Context with the local CLI. Use before implementing or reviewing a user-facing flow, reference fixture, prompt output, or known knowledge object when an agent needs relevant research, rules, patterns, checklists, and evidence limits without reading every index.

5 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 3 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 5 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run this skill before a user-facing implementation or review when the applicable knowledge is not already explicit.

    line 8
  2. Distinctive:

    Read the selected files before proposing product guidance or code.

    line 23
  3. Distinctive:

    If the resolver returns no match, create an observation or research need rather than inventing a rule.

    line 26
  4. Very specific:

    Use --format json for another agent or script.

    line 33

“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Agent Context

Run this skill before a user-facing implementation or review when the applicable knowledge is not already explicit.

Workflow

  1. In a product repository with the npm package installed, verify npx --no-install ai-design-context context --help. In the knowledge-source checkout, use npm run context -- --help.
  2. Resolve the task, review target, or stable object:

    npm run context -- --task quick-capture --platform mobile --intent implement --format json
    npm run context -- --review examples/todo-reference --intent qa
    npm run context -- --object PAT-00002 --format json

    For the installed npm package, replace npm run context -- with npx --no-install ai-design-context context in these examples. Markdown provides absolute reading paths; JSON adds absolutePath while retaining relative graph path.

  3. Read the selected files before proposing product guidance or code.
  4. Apply only the returned rules and patterns that fit the task.
  5. Preserve every returned evidence boundary; draft and seed do not justify broad product claims.
  6. If the resolver returns no match, create an observation or research need rather than inventing a rule.
  7. Inspect each object's selection reason. Required dependencies are complete, while optional links in broad review gates must be followed explicitly when the review needs them.

Boundaries

  • The CLI is read-only and does not replace npm run check.
  • --platform adds relevant context; it does not prove that a pattern applies.
  • Use --format json for another agent or script; errors are machine-readable on stderr.
  • Task matching is lexical. Simple English task wrappers are supported; arbitrary paraphrases and translation are not. Prefer an exact known slug or ID when available.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.