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.
curl -O https://raw.githubusercontent.com/CarlosDanielDev/maestro/main/.claude/skills/project-patterns/SKILL.mdgit clone --depth 1 https://github.com/CarlosDanielDev/maestroWrote 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.
[](https://agentmods.dev/skills/carlosdanieldev/maestro/project-patterns)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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
SessionStatusenum withis_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
StreamEventenum - Key event types:
assistant(text/tool_use),tool_result,result,error
Atomic State Persistence
- Write to
.tmpfile, thenrename()for atomicity - State is a single
MaestroStatestruct serialized as JSON
TUI Architecture
Appowns 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_channelfor session → TUI communication
Error Handling
- Use
anyhow::Resultfor all fallible operations - Use
.context()for adding context to errors - Never
unwrap()in production paths
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.
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.
- 1mo ago First seen · 93 lines · 32 tokens per session scan A 70d8b3788035
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.
project-patterns compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| project-patternsCarlosDanielDev/maestro | Skill | 31 | 20d ago | MIT | A | 32 | Claude Code |
| rust-patternsaffaan-m/ECC | Skill | 298k | 4d ago | MIT | A | 28 | Claude Code, Kiro |
| update-v8-versionopeninterpreter/openinterpreter | Skill | 69k | 2d ago | Apache-2.0 | A | 86 | Codex |
| dd-code-generationDataDog/pup | Skill | 1.0k | yesterday | Apache-2.0 | A | 16 | Claude Code |
| omh-rustrlaope/oh-my-hermes | Skill | 5.2k | today | MIT | A | 74 | Claude Code, Codex |
| swiftidebosun-ai/swiftide | Skill | 802 | yesterday | MIT | A | 47 | Claude Code, Codex |
| azure-keyvault-secrets-rustbenjaminasterA/antigravity-awesome-skills | Skill | 461 | yesterday | MIT | A | 0 | Claude Code, Codex |