Skip to main content

Documentation authoring and maintenance for the attune ecosystem — generate, maintain, and validate help content with AI assistance.

Project description

attune-author

Documentation authoring and maintenance for the attune ecosystem.

attune-help (reader) --> attune-author (authoring) --> attune-ai (full workflows)

Installation

pip install attune-author           # Core (templates, staleness)
pip install 'attune-author[ai]'     # + AI-powered doc generation
pip install 'attune-author[rich]'   # + Rich CLI formatting

Quick Start

# Initialize help system in your project
attune-author init

# Check which templates are stale
attune-author status

# Generate templates for a feature
attune-author generate security-audit

# Regenerate all stale templates
attune-author regenerate

Python API

from attune_author import load_manifest, check_staleness

# Load your project's feature manifest
manifest = load_manifest(".help/features.yaml")

# Check which features have stale documentation
report = check_staleness(".help/")
for feature in report.stale:
    print(f"  {feature.name}: {feature.reason}")

Features

  • Manifest parsing -- Load and validate .help/features.yaml
  • Staleness detection -- Track source hash drift, detect outdated templates
  • Template generation -- Jinja2-based concept, task, and reference templates
  • LLM polish -- Optional AI pass to improve generated content (requires [ai])
  • Bulk maintenance -- Regenerate stale templates in one command
  • API reference -- Generate docs from Python source (requires [ai])
  • CLI -- attune-author command for all operations
  • MCP server -- Expose every CLI capability to Claude Code as callable tools (author_status, author_generate, author_maintain, author_lookup, author_docs, author_init)

MCP Integration

To make attune-author available to Claude Code as tools, add this to .mcp.json in your project:

{
  "mcpServers": {
    "attune-author": {
      "command": "uv",
      "args": ["run", "python", "-m", "attune_author.mcp.server"]
    }
  }
}

Then ask Claude things like "are my help templates up to date?" or "regenerate the stale ones" — it will call the corresponding MCP tools directly.

Automation

Ship an always-fresh help tree by wiring up the post-commit hook:

git config core.hooksPath .githooks   # one-time setup
# or: make setup   (also installs dev deps)

After each commit the hook diffs what changed, matches the files against your manifest, and regenerates only the affected templates.

Development

make setup        # Install dev deps + configure git hooks
make test         # Run the full test suite
make lint         # ruff check
make status       # Check template staleness
make regenerate   # Regenerate stale templates

Ecosystem

Package Role Deps
attune-help Read and render help content 1 (frontmatter)
attune-author Author, generate, maintain docs 4 (jinja2, frontmatter, pyyaml, attune-help)
attune-ai Full developer workflow OS Many

License

Apache 2.0

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

attune_author-0.3.7.tar.gz (100.4 kB view details)

Uploaded Source

Built Distribution

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

attune_author-0.3.7-py3-none-any.whl (75.1 kB view details)

Uploaded Python 3

File details

Details for the file attune_author-0.3.7.tar.gz.

File metadata

  • Download URL: attune_author-0.3.7.tar.gz
  • Upload date:
  • Size: 100.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.11

File hashes

Hashes for attune_author-0.3.7.tar.gz
Algorithm Hash digest
SHA256 933ba0a20c2e057e500c0cea61074c779ab683975f732879bb3dd000e5d4ae75
MD5 b1f008650efcfdba7c6fc2ff1bc3f88d
BLAKE2b-256 5ae6aa364a2ee9ae0e14ffb1ac66fb094fc19d057998728efad371357b98cb15

See more details on using hashes here.

File details

Details for the file attune_author-0.3.7-py3-none-any.whl.

File metadata

  • Download URL: attune_author-0.3.7-py3-none-any.whl
  • Upload date:
  • Size: 75.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.11

File hashes

Hashes for attune_author-0.3.7-py3-none-any.whl
Algorithm Hash digest
SHA256 520a44301aff5075e6ff58f6c429e02a55c2125b5aeb805c449246687703baf8
MD5 400f1ba26217b61762fbf3552f099430
BLAKE2b-256 3febc1eca16a57a721cf58195503d154c59fb13f3d46e12f737007ceeb29593a

See more details on using hashes here.

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