agentleFS
mhgolestanmhgolestan/code-context-mcp/.claude/skills/speckit-companion-before-converge/SKILL.md

speckit-companion-before-converge

Skill0 starsChanged 50 days agoMITView on GitHub

Capture converge start (currentStep=converge, status unchanged) into .spec-context.json for the Companion GUI

1 other project uses a version of this, 1 of them edited.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 3 are distinctive, and 4 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.

  • 4

    Very specific

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

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

    Verify Python is available by running python3 --version.

    line 16
  2. Very specific:

    If python3 is not available, warn the user and skip the capture: [companion] Warning: python3 not detected.

    line 17
  3. Distinctive:

    Run the writer script from the repository root:

    line 21
  4. Distinctive:

    If you already know the feature directory, pass it explicitly so resolution is unambiguous:

    line 31
  5. Very specific:

    If python3 is missing, skip with the warning above.

    line 40
  6. Distinctive:

    If the active feature directory cannot be resolved, the script prints a warning to stderr and exits 0 without writing.

    line 41
  7. Very specific:

    If the spec is already completed or archived, nothing is written.

    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

Capture Converge Start

Record the start of the active feature's converge run into .spec-context.json so the SpecKit Companion GUI shows converge running. This command runs as the before_converge lifecycle hook and only writes state; the convergence check itself is the core speckit.converge workflow.

Prerequisites

  • Verify Python is available by running python3 --version.
  • If python3 is not available, warn the user and skip the capture: [companion] Warning: python3 not detected; skipped .spec-context.json capture. Do not fail the host command.

Execution

Run the writer script from the repository root:

python3 .specify/extensions/companion/scripts/write-context.py --step converge --kind start --by extension

There is no --status: converge owns no status and never moves the spec's status. The start is idempotent, so a re-fired hook never records a second one.

The script resolves the active feature directory on its own, in this order: --feature-dir, SPECIFY_FEATURE_DIRECTORY env, SPECIFY_FEATURE env, .specify/feature.json, current git branch prefix.

If you already know the feature directory, pass it explicitly so resolution is unambiguous:

python3 .specify/extensions/companion/scripts/write-context.py --feature-dir specs/<NNN>-<slug> --step converge --kind start --by extension

Graceful Degradation

The script is best-effort and never fails the host command:

  • If python3 is missing, skip with the warning above.
  • If the active feature directory cannot be resolved, the script prints a warning to stderr and exits 0 without writing.
  • If the spec is already completed or archived, nothing is written.

Output

On success the script prints the path it updated and the values written, e.g. [companion] Updated specs/<NNN>-<slug>/.spec-context.json (currentStep=converge, status=unchanged, kind=start, by=extension). The write is atomic and appends to history[] without rewriting existing entries.

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.