agentleFS
TiagoJacintoTiagoJacinto/skills/compile-instruction/SKILL.md

compile-instruction

Skill2 starsChanged 37 days agoMITView on GitHub

Compile one written instruction into the smallest executable command, code, configuration rule, or automated check. Use when asked to make prose directly runnable or mechanically enforced rather than leave it as documentation.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    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 the smallest form the target environment executes directly:

    line 25
  2. Distinctive:

    Keep one source of truth. Replace superseded prose with the executable artifact or a pointer to its canonical invocation when the prose …

    line 40

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “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

Compile instruction

Turn the instruction into an executable artifact and run or wire it where the user expects.

1. Fix the contract

Identify:

  • the input or trigger;
  • the observable result;
  • the constraints stated in the instruction; and
  • the environment that will execute it.

Inspect the target environment for its existing language, commands, configuration, and enforcement surfaces. Ask one question only when different unresolved interpretations would produce materially different behavior.

Done when: one concrete input-to-result contract preserves the instruction without adding requirements.

2. Choose the native form

Use the smallest form the target environment executes directly:

  • a command for an immediate action;
  • code for behavior used by a program;
  • native configuration for a tool-owned rule; or
  • an automated check when a violation must be rejected.

Prefer an existing project command, standard-library primitive, or native configuration over a new dependency or abstraction. If the instruction names no destination, return a self-contained command in the environment already in use. If there is no target environment, choose the most portable available form and name its runtime.

For repository enforcement, invoke the automated-checks skill rather than duplicating hook or CI policy here.

3. Compile

Implement the contract as the chosen artifact. Make parameters explicit where the instruction leaves values variable. Preserve its latitude: do not strengthen words such as “long,” “random,” or “valid” into unstated lengths, algorithms, character sets, or quality gates. When execution requires such a value, expose it as a parameter or ask for it.

Keep one source of truth. Replace superseded prose with the executable artifact or a pointer to its canonical invocation when the prose exists only to make the action happen.

4. Prove

Execute the command or the narrowest relevant test. Exercise one compliant example and, for a rule, one violating example. Confirm the observed result matches the contract.

Return:

  1. the executable artifact or its path;
  2. the exact invocation;
  3. the observed verification result; and
  4. any input the user must still supply.

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.