Skip to main content

Bundle of the .spec-dev workspace template.

Project description

spec-dev

A small helper package that bundles the .spec-dev workspace template so it can be installed with pip and copied into new projects.

Installation

pip install spec-dev

If you are working from the repository source, you can install it locally instead:

pip install .

CLI Usage

# Initialise a project (default destination is the current directory)
spec-dev init
spec-dev init path/to/app
spec-dev init --force                  # overwrite an existing .spec-dev folder

# Create a task memory scaffold from the bundled template
spec-dev memory T-123

# Archive the current cycle and reset active templates/memories
spec-dev cycle --label fal-ai-image-gen

# Regenerate and validate the file coverage manifest for the current tasks
# Regenerate and validate the file coverage manifest for the current tasks
spec-dev tasks-manifest --rewrite --check

# Update task status or validate memories without editing Markdown manually
spec-dev tasks-status T-123 --set done
spec-dev memories                # add --ensure to scaffold missing stubs

Run spec-dev --help for the full command list and examples.

Python API

from spec_dev import copy, create_memory, complete_cycle
from spec_dev.tasks_manifest import cmd_build_manifest

root = copy("/path/to/project", overwrite=True)
memory = create_memory("T-123", root)
archive = complete_cycle(root, label="fal-ai-image-gen")
manifest = cmd_build_manifest(root)  # also available via CLI: spec-dev tasks-manifest

Each helper returns the Path it creates (the .spec-dev directory, the new memory file, or the archived history folder).

Workflow Primer

The bundled instructions under .spec-dev/*.md walk you through the Plan & Intent → Tasks → Implementation phases. Highlights:

  • .spec-dev/templates/active/ contains fresh templates for each phase, ready to copy into .spec-dev/active-dev/. Add deeper discovery material alongside the plan only when it adds value.
  • The Plan & Intent artifact must list every existing file to modify, every new file to create, and spell out ordered phases (Phase 0, Phase 1, …) with objectives and exit criteria.
  • Run spec-dev tasks-manifest --auto-scope --rewrite --check after the task board is in place. It regenerates active-dev/file-coverage.json, validates that each (path, selector) maps to exactly one task (use @ <selector> to scope to a region), and becomes the checklist before you flip the gate to READY FOR IMPLEMENTATION.
  • Tasks mirror the plan phases using ## Phase N — … headings with status badges while keeping the strict ### T-### + changes blocks for manifest compatibility.
  • Update task status (pending, in-progress, done) with spec-dev tasks-status T-XXX --set <status> so history stays intact until you archive the cycle.
  • Task memories live under .spec-dev/active-memories/; use spec-dev memory T-XXX the moment a task ships to capture why it mattered, what changed, how it shipped, and the validation evidence. Run spec-dev memories (or --ensure) to verify/complement entries. The implementation log template links directly to these files.
  • After delivering a cycle, run spec-dev cycle [--label <name>] to move the finished plan/tasks/implementation log and active memories into .spec-dev/history/, then reset active-dev/ and active-memories/ with clean templates for the next iteration.

Key Files

  • .spec-dev/Plan.md, .spec-dev/Tasks.md, .spec-dev/Implementation.md — phase instructions that govern the agent. Add any deeper discovery material alongside the plan on an as-needed basis.
  • .spec-dev/active-dev/ — working copies for the current cycle.
  • .spec-dev/active-memories/ — task memory drafts for the active cycle.
  • .spec-dev/active-dev/file-coverage.json — auto-generated manifest of task changes (maintained via spec-dev tasks-manifest).
  • .spec-dev/history/ — archived cycles produced by spec-dev cycle.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

spec_dev-0.3.1.tar.gz (22.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

spec_dev-0.3.1-py3-none-any.whl (27.9 kB view details)

Uploaded Python 3

File details

Details for the file spec_dev-0.3.1.tar.gz.

File metadata

  • Download URL: spec_dev-0.3.1.tar.gz
  • Upload date:
  • Size: 22.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.11

File hashes

Hashes for spec_dev-0.3.1.tar.gz
Algorithm Hash digest
SHA256 57c7fca9d6604888d50a032a67f0278d10b262a6eacd527664bd4da23b66da4c
MD5 59bba7ed6a7ef4d5b24733548abe7827
BLAKE2b-256 927f27ffb24763ad2927c89400fac8fec8a792239ca42bf38667addac5f6c417

See more details on using hashes here.

File details

Details for the file spec_dev-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: spec_dev-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 27.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.11

File hashes

Hashes for spec_dev-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 04b483108a0329c9f12642c8776747c8bf5b78b30bd8b04e31475dc4c0882033
MD5 b8549d5f31d7d607f1ce47b2a6c4d2db
BLAKE2b-256 c595812eb963a202b887c24eb7171ae0d1fc8930ef166767f8cde3495c2df406

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page