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.7.tar.gz (10.2 MB 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.7-py3-none-any.whl (12.8 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ai_forge_cli-2.1.7.tar.gz
  • Upload date:
  • Size: 10.2 MB
  • 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.7.tar.gz
Algorithm Hash digest
SHA256 e9487d5559906fd4a9a45aee8e3f20ad6d13631319f975582b27c8ab9fead0fb
MD5 e5a7e7ee722bc995bfaa81243c4e6375
BLAKE2b-256 01c3059dcf4c79de46c0c19e5795fa597e98240f12857c25fa53c153381b8c5d

See more details on using hashes here.

Provenance

The following attestation bundles were made for ai_forge_cli-2.1.7.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.7-py3-none-any.whl.

File metadata

  • Download URL: ai_forge_cli-2.1.7-py3-none-any.whl
  • Upload date:
  • Size: 12.8 MB
  • 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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 48ae1d6f959ea17a0ab8f87fb117c042ad0508a35517d96a2413a3e98283c119
MD5 4529eb0d276e6a89d638dae95403cd79
BLAKE2b-256 14c61dc001a7a3923874ef1df2aeee324f19571d1b8a10f13418e77c67fed79c

See more details on using hashes here.

Provenance

The following attestation bundles were made for ai_forge_cli-2.1.7-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