agentleFS
MSiccDevMSiccDev/ai-context-kit/skills/ack-openspec-check/SKILL.md

ack-openspec-check

Skill13 starsChanged 5 months agoMITView on GitHub

Check that the OpenSpec CLI is 2.1.0 or later and that the OpenSpec files in the repository match it, and give the upgrade steps when they do not. Use before relying on OpenSpec, when an openspec command fails or behaves unexpectedly, or when someone asks which OpenSpec version is set up.

The file

We split this skill into the rules it gives an agent

8 rules. About 0 are common, 2 are distinctive, and 6 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.

  • 6

    Very specific

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

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

    Use before any step that relies on OpenSpec.

    line 17
  2. Very specific:

    Use when an openspec command fails, is unknown, or returns output in an unexpected shape.

    line 18
  3. Distinctive:

    Use when the user asks which OpenSpec version is installed or whether it is current.

    line 19
  4. Very specific:

    Do not use this skill to set up OpenSpec in a repository for the first time.

    line 20
  5. Very specific:

    Run openspec --version. Done when you have a version, or know the command is missing.

    line 26
  6. Very specific:

    Check the generated files with openspec update --dry-run --json.

    line 28
  7. Very specific:

    Run only openspec --version, openspec version --json and openspec update --dry-run --json.

    line 41
  8. Distinctive:

    Never use sudo or edit shell profiles in any suggested command.

    line 42

≈ “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

OpenSpec Check

Purpose

Detect an OpenSpec set-up older than the kit supports, and say exactly how to upgrade it. The kit relies on OpenSpec 2.1.0 or later (spec section 11.6, ADR-016). Two things can be out of date on their own: the CLI on the machine, and the files OpenSpec generated into the repository. This skill checks both and changes neither.

When To Use

  • Use before any step that relies on OpenSpec; ack-loop-01-readiness, ack-create-agents-md, ack-validate-agents-md and ack-guide start it.
  • Use when an openspec command fails, is unknown, or returns output in an unexpected shape.
  • Use when the user asks which OpenSpec version is installed or whether it is current.
  • Do not use this skill to set up OpenSpec in a repository for the first time; openspec init does that, offered by ack-create-agents-md.

Required Inputs

  • A shell in the repository, so the openspec commands can run.

Workflow

  1. Run openspec --version. Done when you have a version, or know the command is missing.
  2. Classify the CLI with references/upgrade.md: NO_CLI, UPGRADE_CLI (older than 2.1.0), NEWER (a later major than 2) or current. For NO_CLI and UPGRADE_CLI, skip to step 4.
  3. Check the generated files with openspec update --dry-run --json; if the command fails, use the fallback in references/upgrade.md. Done when the files are classified as current, UPDATE_FILES, or UNVERIFIED (the fallback found no 1.x markers and so cannot confirm the files are current).
  4. Report one status line (OPENSPEC: OK, NEWER, UPDATE_FILES, UNVERIFIED, UPGRADE_CLI or NO_CLI), the versions found, and for every status except OK the steps from references/upgrade.md, with the user's package manager where openspec version --json names it.

Output Expectations

  • The status line first, so the calling skill can act on it: OK and NEWER continue; UPDATE_FILES and UNVERIFIED continue only after the user runs openspec update (for UNVERIFIED, at least its dry run) or says to proceed; UPGRADE_CLI and NO_CLI stop (manual mode still allows planning).
  • The CLI version, and for UPDATE_FILES how many generated files would change and whether any are 1.x /opsx:* command files.
  • The upgrade steps, copied from references/upgrade.md and filled in for this machine. After an install or upgrade they include the telemetry opt-out and the question whether to keep telemetry on.

Resources

  • Version rule, classification and upgrade steps: references/upgrade.md
  • Decision: ADR-016, ../../docs/adr/ADR-016-minimum-openspec-2-1.md (in the kit repository)

Constraints And Safety

  • Run only openspec --version, openspec version --json and openspec update --dry-run --json. Installing, upgrading and openspec update are for the user to run; offer the commands and wait.
  • Never use sudo or edit shell profiles in any suggested command.

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.