maestro: Skill for Claude Code

.claude/skills/project-patterns/SKILL.md

project-patterns is a skill for Claude Code from CarlosDanielDev/maestro. It costs 32 tokens per session (1,005 once invoked), scanned A, original, MIT.

A reference guide for a Rust command-line application with a terminal interface, asynchronous processing, Claude CLI process management, and JSON or TOML configuration. It documents the project's modules and session state flow.

In plain words
What is it for?
Use it when adding or changing Rust modules for session management, stream parsing, configuration, state storage, or terminal UI.
Why use it?
It helps developers follow the existing structure instead of guessing how sessions, parsing, persistence, and terminal rendering fit together.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

This is CarlosDanielDev/maestro's own configuration. It tells Claude Code how to work on maestro itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything maestro configures →

Reuse

Borrowing it

Nothing to install: this file belongs to CarlosDanielDev/maestro. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/CarlosDanielDev/maestro/main/.claude/skills/project-patterns/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/CarlosDanielDev/maestro

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for project-patterns

README.md
[![agentmods](https://agentmods.dev/badge/skills/carlosdanieldev/maestro/project-patterns/github.svg)](https://agentmods.dev/skills/carlosdanieldev/maestro/project-patterns)
Your own site
<a href="https://agentmods.dev/skills/carlosdanieldev/maestro/project-patterns"><img src="https://agentmods.dev/badge/skills/carlosdanieldev/maestro/project-patterns/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for project-patterns

Your own site · 80×15
<a href="https://agentmods.dev/skills/carlosdanieldev/maestro/project-patterns"><img src="https://agentmods.dev/badge/skills/carlosdanieldev/maestro/project-patterns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,005 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00032 $0.01005
Opus 5.5 $0.00013 $0.00402
Sonnet 5.5 $0.00006 $0.00201
Haiku 4.5 $0.00003 $0.00101

Measured 1mo ago against content hash 70d8b3788035, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

project-patterns scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/project-patterns/SKILL.md · 93 lines

How it starts

The opening of the file, as written. The whole thing — 93 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Maestro Project Patterns

Quick reference for development patterns used in the maestro project.

Technology Stack

  • Language: Rust (2024 edition)
  • TUI: ratatui + crossterm
  • Async: tokio (full features)
  • CLI: clap (derive macros)
  • Serialization: serde + serde_json + toml
  • Error Handling: anyhow

Module Structure

src/
├── main.rs              # CLI entry (clap), command dispatch
├── config.rs            # maestro.toml parsing (serde + toml)
├── session/
│   ├── mod.rs
│   ├── types.rs         # Session state machine, StreamEvent enum
│   ├── parser.rs        # Claude stream-json line parser
│   └── manager.rs       # Process spawn, lifecycle, stdin/stdout
├── state/
│   ├── mod.rs
│   ├── types.rs         # MaestroState, file claims
│   └── store.rs         # JSON persistence (atomic write-rename)
└── tui/
    ├── mod.rs           # Terminal setup, async event loop
    ├── app.rs           # App state, session event handling
    └── ui.rs            # ratatui rendering (panels, gauges, logs)

Patterns

State Machine for Sessions

Sessions follow: QUEUED → SPAWNING → RUNNING → COMPLETED/ERRORED/PAUSED/KILLED

  • Use SessionStatus enum with is_terminal() helper
  • State transitions happen in ManagedSession::handle_event()

Stream-JSON Parsing

  • Claude CLI outputs one JSON object per line
  • Parser is line-by-line, returns StreamEvent enum
  • Key event types: assistant (text/tool_use), tool_result, result, error

Atomic State Persistence

  • Write to .tmp file, then rename() for atomicity
  • State is a single MaestroState struct serialized as JSON

TUI Architecture

  • App owns all state (sessions, activity log, event channels)
  • ui::draw() is pure rendering (takes &App, produces frame)
  • Event loop: poll keyboard (50ms timeout) + drain session events
  • mpsc::unbounded_channel for session → TUI communication

Error Handling

  • Use anyhow::Result for all fallible operations
  • Use .context() for adding context to errors
  • Never unwrap() in production paths

Read the full file on GitHub · 93 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 93 lines · 32 tokens per session scan A 70d8b3788035

Subscribe to this mod's changes

project-patterns is a skill published in the GitHub repository CarlosDanielDev/maestro (31 stars, last pushed 20d ago), licensed MIT. It adds 32 tokens to every session and 1,005 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-02.

Related

project-patterns compared with skills from other repositories

project-patterns next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
project-patternsCarlosDanielDev/maestroSkill3120d agoMITA32Claude Code
rust-patternsaffaan-m/ECCSkill298k4d agoMITA28Claude Code, Kiro
update-v8-versionopeninterpreter/openinterpreterSkill69k2d agoApache-2.0A86Codex
dd-code-generationDataDog/pupSkill1.0kyesterdayApache-2.0A16Claude Code
omh-rustrlaope/oh-my-hermesSkill5.2ktodayMITA74Claude Code, Codex
swiftidebosun-ai/swiftideSkill802yesterdayMITA47Claude Code, Codex
azure-keyvault-secrets-rustbenjaminasterA/antigravity-awesome-skillsSkill461yesterdayMITA0Claude Code, Codex