agentleFS
asterkinasterkin/claude-taew-py/CLAUDE.md

claude-taew-py

CLAUDE.md0 starsChanged 13 months agoMITView on GitHub

Claude Code CLI plugin for AI-assisted development with taew-py Ports & Adapters foundation library. BEFORE WORKING ON TASKS: taew-py is a Python 3.14+ foundation library that makes Ports & Adapters (Hexagonal Architecture) natural and fast, enabling rapid development of Minimal Evolvable Products (MEPs) for early-stage startups. claude-taew-py is an AI-native plugin that teaches Claude Code how to scaffold and develop taew-py applications and 3rd party technology adapters as well as maintaining taew-py itself efficiently. For detailed use cases and architectural…

The file

We split this CLAUDE.md into the rules it gives an agent

8 rules. About 0 are common, 2 are distinctive, and 6 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 6

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When adopting new tool(s):

    line 34
  2. Distinctive:

    Document decision: - Create or update ADR justifying tool selection (ask clarifying questions if needed)

    line 36
  3. Very specific:

    Enable documentation: - Add each tool to .claude/doc-sources.toml via add-doc skill

    line 37
  4. Very specific:

    Modern type hints: Use list[str], not List[str] (Python 3.9+ built-in types)

    line 58
  5. Very specific:

    Union types: Use str | None, not Optional[str]

    line 59
  6. Very specific:

    Executable scripts: Start with #!/usr/bin/env python3 + chmod +x

    line 61
  7. Very specific:

    Encapsulation: Keep utilities with consumers (.claude/skills/*/scripts/)

    line 62
  8. Very specific:

    Skills are self-contained: All scripts/templates live in .claude/skills/<name>/

    line 71

≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

claude-taew-py

Claude Code CLI plugin for AI-assisted development with taew-py Ports & Adapters foundation library.

Critical Instructions

BEFORE WORKING ON TASKS:

  1. Strategic context? → See VISION.md for project philosophy, use cases, and roadmap
  2. File organization? → See ADR-0004: Project Structure and Documentation Standards
  3. Python standards? → See ADR-0005: Python Code Standards

Project Context

taew-py is a Python 3.14+ foundation library that makes Ports & Adapters (Hexagonal Architecture) natural and fast, enabling rapid development of Minimal Evolvable Products (MEPs) for early-stage startups.

claude-taew-py is an AI-native plugin that teaches Claude Code how to scaffold and develop taew-py applications and 3rd party technology adapters as well as maintaining taew-py itself efficiently.

For detailed use cases and architectural philosophy, see VISION.md - Target Users & Use Cases and VISION.md - AI-Native Architecture.

Tool Documentation Access (CRITICAL)

ALWAYS query tool documentation in these scenarios:

  1. Before using Python 3.14+ features
  2. Before using Claude Code CLI features
  3. When encountering errors with configured tools
  4. When user asks "How do I... <tool-name>..." questions

Invoke the doc-query skill for up-to-date documentation access.

When Introducing New Tools

When adopting new tool(s):

  1. Document decision - Create or update ADR justifying tool selection (ask clarifying questions if needed)
  2. Enable documentation - Add each tool to .claude/doc-sources.toml via add-doc skill

Skills should invoke automatically based on context.

Why This Matters

Training data may be outdated for:

  • Python 3.14+ (released after training cutoff)
  • Claude Code CLI (rapidly evolving)
  • Modern tools (ruff, uv, mypy, etc.)

Context7 provides real-time access to current documentation.

See ADR-0003 for architectural rationale.

Python Code Standards - Quick Reference

See ADR-0005: Python Code Standards for detailed guidelines.

Critical reminders (most commonly violated):

  1. Modern type hints: Use list[str], not List[str] (Python 3.9+ built-in types)
  2. Union types: Use str | None, not Optional[str]
  3. Comparison methods: Type parameter as object, use type guards, return NotImplemented
  4. Executable scripts: Start with #!/usr/bin/env python3 + chmod +x
  5. Encapsulation: Keep utilities with consumers (.claude/skills/*/scripts/)
  6. Templates: Extract to separate files (.claude/skills/*/templates/)

Project Structure - Quick Reference

See ADR-0004: Project Structure and Documentation Standards for detailed guidelines.

Critical reminders:

  1. Skills are self-contained: All scripts/templates live in .claude/skills/<name>/
  2. Documentation hierarchy: README → VISION, CONTRIBUTING, ADRs → CLAUDE (leaf node)
  3. No circular refs: CLAUDE.md points to VISION/ADRs, but they don't point back
  4. Token budgets: CLAUDE.md (~50-70 lines), README (~30-40 lines), VISION (unbounded)

For detailed taew-py architectural principles, see: https://github.com/asterkin/taew-py

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.