agentleFS
codeboehmcodeboehm/maxim/skills/prompt/SKILL.md

prompt

Skill0 starsChanged 4 months agoMITView on GitHub

Turn a rough request into a structured task spec (role, context, constraints, instructions, acceptance criteria, open questions) and surface gaps BEFORE writing code. Markdown by default; XML for Mistral Vibe. Use at the start of any non-trivial task, or when a request feels under-specified.

20 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use brainstorm, init and 1 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.
  • nicolasestremSkill

    brainstorm

    Structured idea generation and solution exploration with systematic analysis.

    Also in 4 projects that use this

  • MicrosoftSkill

    init

    Also in 3 projects that use this

  • SentrySkill

    review

    Fixture review skill.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 18 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

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

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

    When this skill is invoked, do not implement and do not draft a plan.

    line 6
  2. Very specific:

    Read the user's request, the loaded AGENTS.md (global + project), and the project's operational profile .agents/project.md if present — it …

    line 14
  3. Very specific:

    If <open_questions> is non-empty, ask those questions and wait.

    line 32
  4. Very specific:

    Default → Markdown: Write the spec as the Markdown document below, one ## section per field.

    line 40
  5. Distinctive:

    Keep every section tight — concrete sentences, no filler.

    line 122

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

When this skill is invoked, do not implement and do not draft a plan. Your only job is to turn the user's request into one structured task spec, store it to the project's .agents/prompts/ directory, and stop. The value is not the syntax — it is forcing every section to be filled, which makes missing context and hidden ambiguity visible before any code or plan exists.

Procedure

  1. Read the user's request, the loaded AGENTS.md (global + project), and the project's operational profile .agents/project.md if present — it is your fast path to the real stack and constraints. If the profile is missing and this is a non-trivial task, run the orient skill first (say so), then continue. Also run skills/index/query.sh with the request's key terms to see prior prompts/specs on related topics before re-deriving context.
  2. Pull <context> and <constraints> from the actual repository — real files, stack, schemas, and the project's hard rules. Never invent placeholders. If a fact is missing, do not guess it: list it under <open_questions>. Where the project exposes live access (agent endpoints, logs, DB — see the analyze skill), use it to ground context and resolve facts rather than leaving them open.
  3. Emit exactly one task spec, in the format your agent uses (see Output format).
  4. Always store it to .agents/prompts/<unix-timestamp>-<kebab-slug>.md in the project (create the directory if missing). Get <unix-timestamp> from the real clock — run date +%s — never invent or estimate the number. This is automatic — never ask whether to save, and never use any other location. Then run skills/index/reindex.sh so the new prompt is catalogued.
  5. If <open_questions> is non-empty, ask those questions and wait.
  6. Stop. This skill ends at the stored spec. Do not draft a plan, a logic blueprint, or any code — that is a separate, explicitly-invoked step.

Output format

Same sections, two serializations — pick by your agent:

  • Default → Markdown. Write the spec as the Markdown document below, one ## section per field. It's more human-readable, so it's the default for Claude Code, GitHub Copilot, and any agent that isn't Mistral.
  • Mistral Vibe → XML. A Mistral model in Vibe follows explicit XML delimiters more reliably, so emit the <task_spec> block instead. Switch to XML only if you are Mistral; when in doubt, use Markdown.

The fields are identical either way — role, context, constraints, instructions, acceptance criteria, open questions — and every one must be filled. The stored file is .md in both cases.

Markdown (default)

# Task spec: <short title>

## Role
The role and stance to adopt (e.g. a paranoid systems architect hunting
structural flaws, race conditions, and data leaks).

## Context
The real tech stack, the specific files/functions in scope, relevant DB schema
or data shapes, and the current code under change — concrete, pulled from the
repo, not generic.

## Constraints
The hard rules that must hold (from AGENTS.md and the domain): security, legal,
data-integrity, style, and deploy constraints.

## Instructions
1. Threat analysis first — concurrency/idempotency, failure-midway state,
   hostile or malformed input, missing/erroring dependencies.
2. Logic blueprint — a step-by-step summary of the approach BEFORE any code.
3. Implementation — typed, guarded, with explicit error handling and cleanup.

## Acceptance criteria
Observable conditions that mean the task is done and correct.

## Open questions
Anything ambiguous or unverifiable. If non-empty, ask before writing code.

XML (Mistral Vibe)

<task_spec>
  <system_role>
    The role and stance to adopt for this task (e.g. a paranoid systems
    architect hunting structural flaws, race conditions, and data leaks).
  </system_role>

  <context>
    The real tech stack, the specific files/functions in scope, relevant DB
    schema or data shapes, and the current code under change. Concrete, pulled
    from the repo — not generic.
  </context>

  <constraints>
    The hard rules that must hold for this change (from AGENTS.md and the
    domain): security, legal, data-integrity, style, and deploy constraints.
  </constraints>

  <instructions>
    1. Threat analysis first — concurrency/idempotency, failure-midway state,
       hostile or malformed input, missing/erroring dependencies.
    2. Logic blueprint — a step-by-step summary of the approach BEFORE any code.
    3. Implementation — typed, guarded, with explicit error handling and cleanup.
  </instructions>

  <acceptance_criteria>
    Observable conditions that mean the task is done and correct.
  </acceptance_criteria>

  <open_questions>
    Anything ambiguous or unverifiable. If this section is non-empty, ask before
    writing code.
  </open_questions>
</task_spec>

Rules

  • Keep every section tight — concrete sentences, no filler.
  • Always persist to the project's .agents/prompts/ — .agents/prompts/<unix-timestamp>-<kebab-slug>.md, created if missing. Storing is unconditional and automatic: do not ask, and do not write to a temp dir, your agent's config/home directory, or anywhere else. (If the project's AGENTS.md names a different prompts location, honor that instead.)
  • Stop after storing. Producing and saving the structured prompt is the whole job — do not continue into planning, a blueprint, or implementation.

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.