agentleFS
exasol-labsexasol-labs/speq-skill/.claude/skills/speq-cli/SKILL.md

speq-cli

Skill56 starsChanged 14 days agoMITView on GitHub

Queries specs via the speq CLI: list and read features, validate structure, run the absence check. Invoke first for any spec discovery or validation.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

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

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

    Read a feature with speq feature get <domain>/<feature>.

    line 13
  2. Very specific:

    Read the spec file directly only when exact text matters, and only the lines you need (Read with offset and limit).

    line 14
  3. Distinctive:

    Before you state that no spec or decision covers a topic, run all three steps:

    line 37
  4. Very specific:

    Read those candidate features or their scenarios with speq feature get.

    line 40
  5. Distinctive:

    Check the ADR digest (next section).

    line 41
  6. Distinctive:

    Do not dump the whole decision log.

    line 47

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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

speq CLI

The CLI is installed locally and on the path. Invoke via speq.

Reading Specs

  • Find a spec by listing the features with speq feature list, then read the relevant ones with speq feature get.
  • Read a feature with speq feature get <domain>/<feature>. It prints the description, the Background, and the scenarios.
  • Read the spec file directly only when exact text matters, and only the lines you need (Read with offset and limit). speq feature get does not print nested list items under a step or fenced code blocks inside a scenario.
  • Find before you read: speq feature get '<domain>/<feature>/<scenario>' for one scenario. Never cat a whole spec.

Command Reference

CommandPurpose
speq domain listList all domains
speq feature listTree view of all features
speq feature list <domain>Features in a domain
speq feature get <domain>/<feature>Full feature spec
speq feature get '<domain>/<feature>/<scenario>'Single scenario
speq decision-log showShow every accepted ADR (large in a mature repo; prefer the ADR digest below)
speq decision-log validateValidate the ADR fragments
speq feature validateValidate all specs
speq feature validate <domain>/<feature>Validate single feature
speq plan listList active plans
speq plan validate <plan>Validate a plan

Single-quote a scenario path. In double quotes, the shell runs the text between backticks as a command.

Absence Check

Before you state that no spec or decision covers a topic, run all three steps:

  1. List the features with speq feature list. Note each feature whose name relates to the topic or a synonym of it.
  2. Read those candidate features or their scenarios with speq feature get.
  3. Check the ADR digest (next section). Read only the fragments that match the topic.

Report absence only when all three steps find nothing. Name the features, scenarios, and ADRs you checked in the claim.

ADR Digest

Do not dump the whole decision log. List the accepted ADRs once per run:

grep -rhE -A4 '^## ADR:|^### Decision' specs/_decision/ 2>/dev/null | grep -vE '^(--|\s*|\*\*Plan:.*|### (Options|Consequences).*)$' || echo none

It prints each ADR's title, ID, status, and Decision line. Read a full fragment only when its title or a term grep matches the topic. Run speq decision-log show at most once per run, and never pipe it through repeated sed or grep passes.

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.