Skip to main content

The ai-hats agent library — portable skills, roles, traits, and rules as a data-only package. Drop-in for any Claude Code user; the versioned content dependency of the ai-hats integrator.

Project description

ai-hats-library

The agent library for ai-hats — the portable content the framework composes into role prompts: skills, roles, traits, and rules, plus the runtime hooks they ship. It is a data-only package (YAML + Markdown + a few hook scripts); it holds no framework runtime code and has zero dependencies.

Two ways to use it

1. Drop-in for any Claude Code user (no ai-hats, no pip). The skills are in the standard Claude Code Agent-Skill format (SKILL.md frontmatter). Clone this package and copy the ones you want into ~/.claude/skills/:

git clone https://github.com/muratovv/ai-hats
cp -r ai-hats/packages/ai-hats-library/src/ai_hats_library/core/skills/systematic-debugging ~/.claude/skills/

The ai-hats composition metadata rides in a namespaced ai_hats: frontmatter key that non-ai-hats agents simply ignore — so every SKILL.md stays drop-in.

2. As the content dependency of ai-hats. ai-hats pins this package (ai-hats-library>=…) and resolves its built-in library layer from it via importlib.resources. The precedence stack layers user overrides on top, last-wins: built-in (this package) < ~/.ai-hats < project libraries.

Layout

src/ai_hats_library/
  core/     # engine fundament — universal skills, base traits, global rules, pipelines
  usage/    # opinionated catalog — domain roles, dev::/env:: traits, opt-in skills
  hooks/    # runtime hook sources materialized into consuming projects

core/ and usage/ are the two library layers (core first = lowest priority). Local development against ai-hats uses the AI_HATS_LIBRARY_ROOT environment override pointed at a checkout of this package.

Versioning

Semantic versioning on the format schema (skill frontmatter + composition schema + resolver expectations), decoupled from ai-hats's own version. The shipped schema_version (in manifest.yaml) is the contract; ai-hats pins a compatible range and fails loud on a library newer than it understands. MAJOR = breaking schema change, MINOR = skills/roles added, PATCH = content fix.

License

MIT — see LICENSE. Third-party-derived skills carry their own upstream attribution in-tree (metadata.yaml upstream: blocks + per-skill LICENSE files); see the repository-root THIRD_PARTY_NOTICES.

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

ai_hats_library-0.2.0.tar.gz (785.8 kB view details)

Uploaded Source

Built Distribution

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

ai_hats_library-0.2.0-py3-none-any.whl (1.0 MB view details)

Uploaded Python 3

File details

Details for the file ai_hats_library-0.2.0.tar.gz.

File metadata

  • Download URL: ai_hats_library-0.2.0.tar.gz
  • Upload date:
  • Size: 785.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for ai_hats_library-0.2.0.tar.gz
Algorithm Hash digest
SHA256 d180cc0f4c56a80d1ca1e45d17f214b39f3c5860de742e784958b8ccc2627430
MD5 7c7add84ddd50b5cf963e49512015664
BLAKE2b-256 46a8a9e0be3d4fe7fa511b94639a3bac1a0e1cc83c1cee4fd89c2dbdab2bd7f9

See more details on using hashes here.

Provenance

The following attestation bundles were made for ai_hats_library-0.2.0.tar.gz:

Publisher: release-packages.yml on muratovv/ai-hats

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ai_hats_library-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for ai_hats_library-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b30341e76c9bd5c9cd12968a1cfa2fcbdc1db25e2e5b665def7c540a7e73b235
MD5 8fbcc6e0ba1cba77f8a22cd3e9fdcac6
BLAKE2b-256 d93e2560c9e090fb5188cb1cb09d1a5dbe6860505534eab3da6e23105ef9f400

See more details on using hashes here.

Provenance

The following attestation bundles were made for ai_hats_library-0.2.0-py3-none-any.whl:

Publisher: release-packages.yml on muratovv/ai-hats

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