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.1.tar.gz (84.9 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.1-py3-none-any.whl (29.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: role_forge-0.1.1.tar.gz
  • Upload date:
  • Size: 84.9 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.1.tar.gz
Algorithm Hash digest
SHA256 cb43d1540e5bcb3f8730de7587e3ea6355d7103a1dece9ed441c01a278264104
MD5 e27391d19a9f30084decdc5c1f493db2
BLAKE2b-256 8f0e16dc53a38678d77faa719e0aa7ed80b34b8fb4fca08cbad2ac2d8e75800d

See more details on using hashes here.

Provenance

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

Publisher: ci-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.1-py3-none-any.whl.

File metadata

  • Download URL: role_forge-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 29.5 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7a53aed4b669a49450eb16930f8a2dd8e6a8e2251a3a247686444f796675b405
MD5 d2ac23f3e8d198b41d2f512f6441fc72
BLAKE2b-256 fb72761c0a75cde21d819d4d1285f3f5127a6de4d81dc993e5c49779c72a8854

See more details on using hashes here.

Provenance

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

Publisher: ci-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