Skip to main content

Forge V4 architecture context CLI

Project description

Forge

Forge is a Python CLI and framework for V4 system design and delivery. It keeps C1/C2 architecture central, keeps C3 implementation architecture beside code, and gives skills narrow context from the merged model.

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_V4.md: the V4 framework process used to seed forge/FRAMEWORK_V4.md
  • SCHEMA_REFERENCE_V4.md: the V4 schema contract used to seed forge/SCHEMA_REFERENCE_V4.md
  • examples/: example Forge repositories and audit artifacts

CLI Commands

  • forge init: scaffold a new Forge workspace and explain how to use it
  • forge crawl: extract the merged V4 model from central files and code annotations
  • forge context: render scoped context for a system, flow, container, entity, component, operation, or data shape
  • 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 business discovery to one thin build slice
  • 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 build slice 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_V4.md
    • forge/SCHEMA_REFERENCE_V4.md
  3. Use forge-business to create business-plan.md for new ideas.
  4. Use forge-schema to define:
    • forge/system.yaml
    • forge/containers.yaml
    • forge/entities.yaml
    • forge/decisions.yaml
    • forge/crawler.yaml
  5. Use forge-hydrate when an existing codebase needs to be reverse-engineered into Forge V4.
  6. Use business actions to speculate cross-container runtime flows before settling containers.
  7. Add C3 annotations beside implementation code as the slice is built.
  8. Use forge crawl, forge context, and forge audit to validate the merged model.
  9. Use forge-review and forge-security before build work.
  10. Use forge-build to plan or implement the approved slice.

The intended operating mode is:

  1. choose the active skill first
  2. ask that skill what scope it needs
  3. use forge crawl to validate extraction
  4. use forge context only for narrow scope
  5. use forge audit when you need a 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_minimal_web_app: the V4 example used for docs, smoke tests, crawler extraction, context, 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_minimal_web_app"
.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 slice-first: model broadly, then deepen one thin build slice.
  • The framework should reduce context, not increase it.
  • Components and exact schemas should only appear when runtime boundaries and business action intent are already clear.
  • Important decisions should be captured in forge/decisions.yaml.

Maintainer Notes

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-3.0.2.tar.gz (247.1 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-3.0.2-py3-none-any.whl (249.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ai_forge_cli-3.0.2.tar.gz
  • Upload date:
  • Size: 247.1 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-3.0.2.tar.gz
Algorithm Hash digest
SHA256 0a8cabd271804b8e0e41cab0b31c6d12e3e13fbd0b43d2fba2ffd3cbbbd4ac8b
MD5 878d3dedef292ec596d2551f71b4428d
BLAKE2b-256 f817cb8a2a2dea6da7b347ff29ed1a39f8dab782f7a870e66bb7f46548a83065

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: ai_forge_cli-3.0.2-py3-none-any.whl
  • Upload date:
  • Size: 249.9 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-3.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ecb9fad2d30c93fe39b4b01babe4c5b6648a5ec5c13708fb867b4a99ccd19479
MD5 91886b83c483882318a78cc9e9423d98
BLAKE2b-256 4aa625edf3ba0ebb0d6877379a4c9e7b231b2ce387930ae28c1fd8bbfc52c49a

See more details on using hashes here.

Provenance

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