Skip to main content

Forge V3 context CLI

Project description

Forge

Forge is a Python CLI and framework for vertical-first system design and delivery. It helps you define a system clearly, split it into buildable verticals, and then deepen and implement one slice at a time with the minimum context needed for the task at hand.

Forge is skills-first. The skills drive the work. The CLI exists to provide scoped context, validation, and audit artifacts to the active skill.

What This Repository Contains

  • src/cli: the Forge CLI implementation
  • skills/: the Forge skill source used by initialized repositories
  • FRAMEWORK_V3.md: the framework process and recommended authoring order used to seed forge/FRAMEWORK_V3.md
  • SCHEMA_REFERENCE_V3.md: the schema contract and field rules used to seed forge/SCHEMA_REFERENCE_V3.md
  • examples/: example Forge repositories and audit artifacts

CLI Commands

  • forge init: scaffold a new Forge workspace and explain how to use it
  • forge context: render scoped context for a system, vertical, flow, container, or component
  • forge audit: generate a self-contained architecture audit dashboard

What Forge Is

  • a framework for capturing architectural truth before implementation detail
  • a skills-first workflow for moving from broad system design to one thin vertical at a time
  • a scoped context generator for build, review, and security tasks
  • an audit artifact generator for human review

What Forge Is Not

  • a generic project scaffolder for arbitrary app stacks
  • a replacement for implementation skills such as build, review, and security
  • a reason to model every payload, component, or environment detail up front
  • an excuse to widen a vertical beyond what can be built and validated cleanly

Recommended Workflow

  1. Run forge init in an empty repository.
  2. Read:
    • forge/USING_FORGE.md
    • forge/FRAMEWORK_V3.md
    • forge/SCHEMA_REFERENCE_V3.md
  3. Use forge-schema to define:
    • forge/system.yaml
    • forge/high_level_flows/
    • forge/early_state.yaml
    • forge/runtime.yaml
  4. Derive forge/verticals/ once the runtime picture is clear.
  5. Pick one vertical and deepen it through:
    • forge/runtime_flows/
    • forge/data_shapes/
    • forge/persistent_shapes/
    • forge/containers/
    • forge/deployment.yaml
  6. Use forge-review to check the slice for drift, bloat, and broken references before build starts.
  7. Use forge-security to make the slice security posture explicit before build starts.
  8. Use forge-build to plan or implement that approved vertical.

The intended operating mode is:

  1. choose the active skill first
  2. ask that skill what scope it needs
  3. use forge context only for that narrow scope
  4. use forge audit when you need a whole-system review artifact

An initialized repository keeps the Forge-owned schema workspace under ./forge/. The repo root stays available for product code, app docs, and non-Forge tooling.

Golden Path Examples

  • examples/forge_v2_ordering_example: the compact canonical example for docs, smoke tests, and first-time users
  • examples/forge_v2_fulfillment_control_example: the richer example used to pressure-test flows, data, deployment, and audit rendering

Local Development

Use the project virtual environment:

.venv/bin/python -m pip install -e .[dev]

Validation Commands

make lint
make typecheck
make test
make compile
make build
make verify-package
make smoke-init
make check

make verify-package builds the wheel, installs it into a fresh Python 3.11+ virtual environment, and confirms that the installed forge entrypoint works.

Packaging

Build artifacts are generated with:

.venv/bin/python -m build

This produces:

  • dist/*.tar.gz
  • dist/*.whl

Validate package metadata before release with:

make check-dist

Local Testing

Run the full local verification path:

make check

That covers linting, type checking, tests, compile validation, build output, distribution metadata checks, clean wheel install, and forge init smoke validation.

If you want to test the richer example schema directly:

EXAMPLE="examples/forge_v2_fulfillment_control_example"
.venv/bin/forge audit --project-dir "$EXAMPLE" --output /tmp/forge-audit-example.html

That generates the audit artifact and opens it unless --no-open is supplied.

Framework Notes

  • Forge is vertical-first: model broadly, then deepen one thin slice.
  • The framework should reduce context, not increase it.
  • Components and exact schemas should only appear when runtime boundaries and vertical intent are already clear.
  • Important decisions should be captured in decision_notes.md.

Maintainer Notes

Repository Notes

Previous iteration artifacts have been retained in old-forge-v2/.

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

ai_forge_cli-2.1.3.tar.gz (187.7 kB view details)

Uploaded Source

Built Distribution

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

ai_forge_cli-2.1.3-py3-none-any.whl (188.5 kB view details)

Uploaded Python 3

File details

Details for the file ai_forge_cli-2.1.3.tar.gz.

File metadata

  • Download URL: ai_forge_cli-2.1.3.tar.gz
  • Upload date:
  • Size: 187.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for ai_forge_cli-2.1.3.tar.gz
Algorithm Hash digest
SHA256 449b64076f30d5cd95ceab9b40ee58e7b6cffefebd2998cf532fe2ac123469a0
MD5 764c35570b819d975f8bba38ab40e4b6
BLAKE2b-256 2ba64752b96f9d2837328c9a8421f5a34a20b6a8ad2517c2f5b0918a266623f9

See more details on using hashes here.

Provenance

The following attestation bundles were made for ai_forge_cli-2.1.3.tar.gz:

Publisher: release.yml on GreyFlames07/forge

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ai_forge_cli-2.1.3-py3-none-any.whl.

File metadata

  • Download URL: ai_forge_cli-2.1.3-py3-none-any.whl
  • Upload date:
  • Size: 188.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for ai_forge_cli-2.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 01c117be0d27e7d058af11f00ff86e637809b1fe03877bba5877f254f0925c64
MD5 450d96bf4ae8d9e8e20371f670fa02f6
BLAKE2b-256 e77c16fbb10268d3de3be3596fbc43fc29be77732aa30eef965ad02f3daff69f

See more details on using hashes here.

Provenance

The following attestation bundles were made for ai_forge_cli-2.1.3-py3-none-any.whl:

Publisher: release.yml on GreyFlames07/forge

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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