SuperAPIAI Directory

bhawna-skills

github.com · AI coding

Bhawna Skills is a tool that provides memory and architectural guardrails for AI coding agents (such as Claude Code and Codex). It prevents architectural drift by inspecting code repositories, recording confirmed architectural decisions and project invariants, and running InvariantGate checks before implementing new goals. It supports command-line operations for initialization, configuring a semantic evaluator, and checking goals, with results classified as PASS, REVIEW, or BLOCKED. It is suitable for code repositories maintained over the long term, helping developers ensure that AI agents follow the established rules of the project.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsLinux

About this tool

Bhawna Skills is designed to solve the problem that AI coding agents may forget or violate architectural decisions, project invariants, and tool choices in long-term projects, that is, architectural drift. It validates goals before implementation through repository-owned decisions and a pre-check mechanism.

Main capabilities include:

  • Repository-owned constitution and invariant catalog: initialized via bhawna init , which discovers objective facts and related catalog issues; confirmed decisions are stored in .bhawna/decisions.yaml, and only accepted invariants are copied to .bhawna/invariants.yaml for enforcement.
  • InvariantGate check:bhawna check runs checks against confirmed invariants, scope rules, built-in safety policies, and recorded exceptions, with results classified as PASS, REVIEW, or BLOCKED. Unconfirmed catalog suggestions are not enforced.
  • Semantic evaluator: uses any OpenAI-compatible chat completion endpoint for semantic comparison; requires configuring BHAWNA_MODEL_URL and BHAWNA_MODEL.
  • Configuration validation:--config-only only verifies that the guardrail files can be parsed; it does not claim that the goal is architecturally safe.
  • Agent/tool integration: the CLI can be run by any agent or human before implementation; bhawna check;skills/invariant-gate/SKILL.md describes the same workflow for coding agents that load skills.
  • Output formats: supports JSON/SARIF output for CI and code scanning.
  • Other features: decision catalog, relevance routing, guided/discovery-based onboarding, support for multiple independent evaluators, goal-to-invariant relevance selection to reduce prompts, ADR-aware pre-checks, agent skill packaging, drift regression suite, and project-specific policy plugins.

Usage:

  1. Initialize guardrails in the repository: run bhawna init(or --guided / --quick), which creates .bhawna/ and records candidates without silently overwriting accepted configuration. Use --answers to confirm, defer, reject, or mark as not applicable.
  2. Create project invariants: edit the relevant files to describe the project's persistent rules (architecture, tooling, security, completion gates), and keep statements specific so goals can be judged.
  3. Configure the semantic evaluator: set an OpenAI-compatible endpoint.
  4. Check goals: run bhawna check.

Installation: the current public path is installation from source. PyPI trusted publishing is prepared but not yet configured on pypi.org, so uvx --from bhawna-skills is unavailable until a one-time publisher is added. Once published to PyPI, the corresponding command can be used (note that uvx bhawna looks up a different distribution name).

Use cases: developers running coding agents on repositories maintained over the long term who want repository-owned decision memory and pre-implementation checks.

Limitations: semantic evaluation sends the goal, constitution, and invariant content to the configured model endpoint, which may contain proprietary information; review the provider's data processing terms first.--config-only only validates configuration validity and does not guarantee semantic safety. Unconfirmed catalog suggestions are not enforced.

The project uses the MIT license. The example project is located at examples/sample-project/,including the constitution, invariants, two goals, and runnable commands. CI runs the same commands as well as package build and post-install CLI smoke tests.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools