Skip to main content

Lightweight help runtime with progressive depth and audience adaptation.

Project description

attune-help

Lightweight help runtime with progressive depth and audience adaptation. Read project help templates generated by attune-ai.

Install

pip install attune-help

Quick Start

from attune_help import HelpEngine

engine = HelpEngine(template_dir=".help/templates")

# Progressive depth: concept -> task -> reference
print(engine.lookup("security-audit"))   # concept
print(engine.lookup("security-audit"))   # task
print(engine.lookup("security-audit"))   # reference

How It Works

Each topic has three depth levels:

Level Type What you get
0 Concept What is it? When to use it?
1 Task Step-by-step how-to
2 Reference Full detail, edge cases

Repeated lookups on the same topic auto-advance. A new topic resets to concept.

Renderers

# Plain text (default)
engine = HelpEngine(renderer="plain")

# Rich terminal output (requires `pip install attune-help[rich]`)
engine = HelpEngine(renderer="cli")

# Claude Code inline format
engine = HelpEngine(renderer="claude_code")

# Auto-detect environment
engine = HelpEngine(renderer="auto")

Template Directory

Templates are markdown files with YAML frontmatter:

.help/templates/
  security/
    concept.md
    task.md
    reference.md
  api/
    concept.md
    task.md
    reference.md

Generate templates with attune-ai:

pip install attune-ai
# Then in Claude Code:
/coach init

Or create them manually — any markdown file with feature, depth, and source_hash frontmatter fields works.

Demo Templates

The package includes a demo feature showing the progressive depth format:

from attune_help import get_demo_path

# Copy to your project
import shutil
shutil.copytree(
    get_demo_path() / "security-audit",
    ".help/templates/security-audit",
)

The security-audit/ demo contains concept.md, task.md, and reference.md — the three depth levels that /coach init generates for each feature.

API

HelpEngine

HelpEngine(
    template_dir=None,    # Override template path
    storage=None,         # Session storage backend
    renderer="plain",     # Output renderer
    user_id="default",    # Session tracking ID
)

Methods:

  • lookup(topic) — Progressive depth lookup
  • get(template_id) — Direct template access
  • lookup_raw(topic) — Returns PopulatedTemplate dataclass
  • get_summary(skill) — One-line skill summary
  • precursor_warnings(file_path) — File-aware warnings

SessionStorage Protocol

Implement custom storage backends:

from attune_help import SessionStorage

class RedisStorage(SessionStorage):
    def load(self, user_id: str) -> dict: ...
    def save(self, user_id: str, state: dict) -> None: ...

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_help-0.3.1.tar.gz (390.9 kB view details)

Uploaded Source

Built Distribution

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

attune_help-0.3.1-py3-none-any.whl (687.0 kB view details)

Uploaded Python 3

File details

Details for the file attune_help-0.3.1.tar.gz.

File metadata

  • Download URL: attune_help-0.3.1.tar.gz
  • Upload date:
  • Size: 390.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for attune_help-0.3.1.tar.gz
Algorithm Hash digest
SHA256 73b0ef25fbe9336a9e949488e6b479ce7b1dcf1e6cde78b9cd2898cdcbb4c707
MD5 bc4a6a2e110dd8e00749d48c9d26cc36
BLAKE2b-256 85773d59cfc40b0d550fa7f1feafd0528939f31d1cd875a90c672f6d6026e5b0

See more details on using hashes here.

Provenance

The following attestation bundles were made for attune_help-0.3.1.tar.gz:

Publisher: publish.yml on Smart-AI-Memory/attune-help

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

File details

Details for the file attune_help-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: attune_help-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 687.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for attune_help-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3ef11299772cf3f2ed0b09c70d83e041676e37abf97e99ea0eb5e0fb09a703ad
MD5 d12700e267425f1523f579e2758e6911
BLAKE2b-256 cc9816b6e9be4a1c3bda38f2bff0e02404e75a24c337f39ca03727ebc5207f2e

See more details on using hashes here.

Provenance

The following attestation bundles were made for attune_help-0.3.1-py3-none-any.whl:

Publisher: publish.yml on Smart-AI-Memory/attune-help

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