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.2.tar.gz (86.5 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.2-py3-none-any.whl (31.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: role_forge-0.1.2.tar.gz
  • Upload date:
  • Size: 86.5 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.2.tar.gz
Algorithm Hash digest
SHA256 0b96b896324508ab36eb7a1ca9d3b1c9004930510ea9a4c6ef9145a524f5b79a
MD5 0a81e6b6ffa33e2149577489cfc69d4b
BLAKE2b-256 c7fc2cb7c3337527c08b09ef422805b844b3dfea77f5ac7a42b8e7fa1e8c7cd7

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: role_forge-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 31.1 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1fd0afbf593f66cb6bd422bee277dfa4e7a4562e48c32bd54ae20d52789074e5
MD5 8365e415c9fe4a616bca537c4cbadd98
BLAKE2b-256 a252084f2498f85aa884ef375796f4927b2e0c2c2f5867a20e9ca98cb5dbb7b7

See more details on using hashes here.

Provenance

The following attestation bundles were made for role_forge-0.1.2-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