agentleFS
mmccallammccalla/coding-agent-skill-library/skills/context-engineering/SKILL.md

context-engineering

Skill4 starsChanged 5 months agoApache-2.0View on GitHub

Use when a task needs the right repository, file and document context assembled without unnecessary noise.

82 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use using-agent-skills, constraint-driven-development and 5 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • LLl0k0laDSkill

    using-agent-skills

    Use when starting a session or when you need to discover which skill applies to the current task. This is the meta-skill that governs how all other skills are discovered and invoked.

    Also in 24 projects that use this

  • vinvcnSkill

    constraint-driven-development

    把一个项目的质量线确立为书面契约,并阻止 agent 悄悄降低它。通过访谈确定用户在意哪些维度,当用户心里没有数字时提供合理的默认阈值,把一切记录进 CONSTRAINTS.md,并盯住 diff 中质量线被削弱的迹象——新增的 @ts-ignore 或 eslint-disable 抑制注释、被跳过或删除的测试、被剥掉的断言、未实现的 stub、被调低的阈值。当没有任何质量线被写下来时使用;当用户说 "set up constraints" 或 "define our standards" 时;当用户希望把他们在意的维度——无障碍性、Web 性能、覆盖率——设置成被强制执行的约束时;当 agent 为了变绿不断静默检查或跳过测试时;当你需要一个覆盖率或性能阈值却不知道该选什么数字时;或者当 agent 写下的代码超出任何人会读的体量时。

    Also in 4 projects that use this

  • LLl0k0laDSkill

    api-and-interface-design

    Use when designing APIs, module boundaries, or any public interface. Use when creating REST or GraphQL endpoints, defining type contracts between modules, or establishing boundaries between frontend and backend.

    Also in 29 projects that use this

  • +4 more from LLl0k0laD

The file

We split this skill into the rules it gives an agent

6 rules. 0 are common, 6 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 77 edited versions we read keep these.

  • 6

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill when starting a session, switching tasks, or preparing context for a workflow that depends on the right local files and …

    line 13
  2. Distinctive:

    Keep task-specific context separate from general repository guidance.

    line 24
  3. Distinctive:

    Do not paste the whole repository into context by default.

    line 29
  4. Distinctive:

    Do not rely on stale assumptions when better source files exist.

    line 30
  5. Distinctive:

    Do not mix instructions, evidence and speculation without labelling them.

    line 31
  6. Distinctive:

    Prefer explicit file references over memory.

    line 32

“Common” is measured: kept by at least 6 in 10 of the 77 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

Context Engineering

When to use

Use this skill when starting a session, switching tasks, or preparing context for a workflow that depends on the right local files and guidance.

Objective

Load enough context to work accurately while avoiding irrelevant material that dilutes attention or exceeds the useful scope.

Procedure

  1. Identify the authoritative sources for the task.
  2. Load the smallest relevant docs, manifests and files.
  3. Summarise conventions instead of copying whole files when possible.
  4. Keep task-specific context separate from general repository guidance.
  5. Refresh context only when the task shape or evidence changes.

Rules

  • Do not paste the whole repository into context by default.
  • Do not rely on stale assumptions when better source files exist.
  • Do not mix instructions, evidence and speculation without labelling them.
  • Prefer explicit file references over memory.

Example

For a validator change, load the validator, its tests, the library contract and only the skill files affected by the new rule. Do not load unrelated UX or reliability skills unless the failing evidence points there. If a later test reveals more affected files, refresh context and record why the scope expanded.

References

Verification

  • Context sources selected and justified.
  • Excluded or truncated context noted.
  • Token or noise trade-offs stated.
  • Residual context gaps or risks reported.

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.