agentleFS
yanfeidyanfeid/claude-amber/skills/focus/SKILL.md

focus

Skill2 starsChanged 5 months agoMITView on GitHub

Declare a focus contract for the current task to keep context lean — scopes which files/dirs are in play, bans out-of-scope exploration, and routes broad searches to subagents. Use when starting a task, when the user says "focus on X", or when the session is drifting across unrelated parts of the codebase.

10 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use build.

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.
  • Microsoft AzureSkill

    build

    Build the TypeSpec Rust emitter from source. Run this after cloning the repo, after pulling changes, or when TypeScript source files have been modified.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 10 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Write .amber/FOCUS.md in the project root (create the directory if needed):

    line 21
  2. Distinctive:

    Keep it under 20 lines. This file is re-injected after every compaction, so every line costs tokens forever — earn each one.

    line 32
  3. Distinctive:

    Read only in-scope files, and only the parts you need (offset/limit on large files).

    line 36
  4. Distinctive:

    When you need broad codebase knowledge (where is X defined, how is Y used everywhere), delegate to an Explore subagent and consume only its …

    line 37
  5. Distinctive:

    If the user asks for something out of scope, do it, but say so and offer to update the contract.

    line 38
  6. Very specific:

    When the task's done criteria are met, say so and suggest /amber:checkpoint if the session continues.

    line 39

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

/amber:focus — set a focus contract

The user wants to work on: $ARGUMENTS

A focus contract is how this session stays cheap and sharp. Big contexts make models dumber (context rot) and die in compaction. Your job now:

1. Define the scope

From the task description (ask one clarifying question only if genuinely ambiguous), determine:

  • In-scope paths: the files/directories this task will actually touch. Be narrow. Use Glob/Grep to identify them — do not read whole files yet.
  • Out-of-scope: everything else, named explicitly if the user has been drifting there.
  • Done criteria: 1–3 checkable statements for what "finished" means.

2. Write the contract

Write .amber/FOCUS.md in the project root (create the directory if needed):

# Focus contract
- Task: <one sentence>
- In scope: <paths/globs>
- Out of scope: <paths or topics, if relevant>
- Done when: <checkable criteria>
- Set: <ISO date>

Keep it under 20 lines. This file is re-injected after every compaction, so every line costs tokens forever — earn each one.

3. Obey the contract for the rest of the session

  • Read only in-scope files, and only the parts you need (offset/limit on large files).
  • When you need broad codebase knowledge (where is X defined, how is Y used everywhere), delegate to an Explore subagent and consume only its conclusion — never pull file dumps into the main context.
  • If the user asks for something out of scope, do it, but say so and offer to update the contract.
  • When the task's done criteria are met, say so and suggest /amber:checkpoint if the session continues.

Confirm the contract to the user in 2–3 sentences, then start the task.

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.