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 implementationskills/: the Forge skill source used by initialized repositoriesFRAMEWORK_V4.md: the V4 framework process used to seedforge/FRAMEWORK_V4.mdSCHEMA_REFERENCE_V4.md: the V4 schema contract used to seedforge/SCHEMA_REFERENCE_V4.mdexamples/: example Forge repositories and audit artifacts
CLI Commands
forge init: scaffold a new Forge workspace and explain how to use itforge crawl: extract the merged V4 model from central files and code annotationsforge context: render scoped context for a system, flow, container, entity, component, operation, or data shapeforge 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
- Run
forge initin an empty repository. - Read:
forge/USING_FORGE.mdforge/FRAMEWORK_V4.mdforge/SCHEMA_REFERENCE_V4.md
- Use
forge-businessto createbusiness-plan.mdfor new ideas. - Use
forge-schemato define:forge/system.yamlforge/containers.yamlforge/entities.yamlforge/decisions.yamlforge/crawler.yaml
- Use
forge-hydratewhen an existing codebase needs to be reverse-engineered into Forge V4. - Use business actions to speculate cross-container runtime flows before settling containers.
- Add C3 annotations beside implementation code as the slice is built.
- Use
forge crawl,forge context, andforge auditto validate the merged model. - Use
forge-reviewandforge-securitybefore build work. - Use
forge-buildto plan or implement the approved slice.
The intended operating mode is:
- choose the active skill first
- ask that skill what scope it needs
- use
forge crawlto validate extraction - use
forge contextonly for narrow scope - use
forge auditwhen 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.gzdist/*.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
- Release instructions live in docs/RELEASING.md.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ai_forge_cli-3.0.0.tar.gz.
File metadata
- Download URL: ai_forge_cli-3.0.0.tar.gz
- Upload date:
- Size: 246.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a33bb9ecda164f20931cf790006238cf871be2158503e49066d60f8c8f2a9327
|
|
| MD5 |
0ef8419dc85a58089c7422bfacd0757a
|
|
| BLAKE2b-256 |
2765132d0563ef6430c1728dfdf11fcfc645123c80288177686ba5d496171321
|
Provenance
The following attestation bundles were made for ai_forge_cli-3.0.0.tar.gz:
Publisher:
release.yml on GreyFlames07/forge
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ai_forge_cli-3.0.0.tar.gz -
Subject digest:
a33bb9ecda164f20931cf790006238cf871be2158503e49066d60f8c8f2a9327 - Sigstore transparency entry: 1732943514
- Sigstore integration time:
-
Permalink:
GreyFlames07/forge@6e5ce642f4578f0c5b4766071f3b3ea3d0594774 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/GreyFlames07
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@6e5ce642f4578f0c5b4766071f3b3ea3d0594774 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file ai_forge_cli-3.0.0-py3-none-any.whl.
File metadata
- Download URL: ai_forge_cli-3.0.0-py3-none-any.whl
- Upload date:
- Size: 249.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
58428d5f7816e58b0ec4e871f0e9f03492184b00d81c21287878f9bd399a0b15
|
|
| MD5 |
e73087b60d2d8b00b82da0cfe4249094
|
|
| BLAKE2b-256 |
c1d2a72087dd0ea3936ceb9bc23b110e796534dea8871322f2aff288cd296816
|
Provenance
The following attestation bundles were made for ai_forge_cli-3.0.0-py3-none-any.whl:
Publisher:
release.yml on GreyFlames07/forge
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ai_forge_cli-3.0.0-py3-none-any.whl -
Subject digest:
58428d5f7816e58b0ec4e871f0e9f03492184b00d81c21287878f9bd399a0b15 - Sigstore transparency entry: 1732943570
- Sigstore integration time:
-
Permalink:
GreyFlames07/forge@6e5ce642f4578f0c5b4766071f3b3ea3d0594774 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/GreyFlames07
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@6e5ce642f4578f0c5b4766071f3b3ea3d0594774 -
Trigger Event:
workflow_dispatch
-
Statement type: