Skip to main content

Canonical role-definition toolkit for coding agents

Project description

role-forge

Canonical role-definition toolkit for coding agents.

role-forge keeps one canonical role source and renders it into platform-specific agent formats for tools like Claude Code, OpenCode, Cursor, and Windsurf.

Install

uv tool install role-forge

Quick start

role-forge add PFCCLab/precision-agents -y
role-forge add ./local-roles
role-forge render --target claude
role-forge list

add and update ask before overwriting existing files. Use --yes to skip confirmations.

Project installs are the default. Use role-forge add -g, role-forge list -g, and role-forge remove -g for the user scope in ~/.agents/roles. Rendering merges both scopes and lets project roles override same-id user roles.

Why this repo exists

  • avoid maintaining the same role prompt in multiple tool-specific formats
  • keep capabilities, delegation policy, and model tiers in one canonical source
  • validate hierarchy and output layout before rendering
  • support extension through adapter entry points

Capability model

Canonical roles declare abstract capabilities such as basic, read, write, web-access, delegate, bash, safe-bash, and all. role-forge expands those once into a shared intermediate capability model, then each adapter renders the matching tools and permissions for its target. If a role omits capabilities entirely, basic is applied by default.

Documentation

  • live site: https://role-forge.sixbones.dev
  • docs home: docs/index.md
  • canonical role format: docs/reference/canonical-role-definition.md
  • CLI reference: docs/reference/cli.md
  • configuration: docs/reference/configuration.md
  • adapters: docs/reference/adapters.md
  • architecture: docs/architecture/system-overview.md
  • development: docs/development/contributing.md
  • deployment: docs/development/deployment.md

Documentation site

This repo now includes a Zensical doc set inspired by the structure used in volvox.

uv add --dev zensical
zensical serve

License

MIT

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

role_forge-0.1.3.tar.gz (85.2 kB view details)

Uploaded Source

Built Distribution

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

role_forge-0.1.3-py3-none-any.whl (31.3 kB view details)

Uploaded Python 3

File details

Details for the file role_forge-0.1.3.tar.gz.

File metadata

  • Download URL: role_forge-0.1.3.tar.gz
  • Upload date:
  • Size: 85.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for role_forge-0.1.3.tar.gz
Algorithm Hash digest
SHA256 34ca555900fc73c37f79788803cbb3dafa361fac08fd0064da17c81ec59131a5
MD5 62b3e89ba64e03f9f500f8a2b27195c6
BLAKE2b-256 209e311959df723019300c343c9bfb1dc8c44518fe2cd02631b9d18d2ee1cb37

See more details on using hashes here.

Provenance

The following attestation bundles were made for role_forge-0.1.3.tar.gz:

Publisher: cd-publish.yml on zrr1999/role-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 role_forge-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: role_forge-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 31.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for role_forge-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e5c9a9fc31c1e78d93597829b2273a69a76216797b7af39d8de89a274e71f62a
MD5 fdd127cdffb95861312630ee63e34f26
BLAKE2b-256 f582c56b562144b8a24e56b0e76f9520bdc489da5c68438fdea534f98fcce0dc

See more details on using hashes here.

Provenance

The following attestation bundles were made for role_forge-0.1.3-py3-none-any.whl:

Publisher: cd-publish.yml on zrr1999/role-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