Generic Constructor-Pattern agent kit for Claude Code. Zero personal data, fully English, MIT-licensed. Contents: - 34 reusable blocks (baseline, rules, stack/deploy/domain/api/scraper) - 14 cross-project agent manifests (code/ml/infra/researcher/critic/...) - 6 portable skills (/new-agent, /research, /test-gen, /debug-deep, /pr-review, /refactor) - Rust assembler (single binary, ~500 KB) - 3 hooks (auto-reassemble, pre-commit validate, no-hand-edit) - install.sh (idempotent, cargo-builds on first run) - MIT LICENSE All 6 sanity greps pass: 0 Russian text, 0 specific project names, 0 incident numbers, 0 user paths, 0 hardcoded IPs, 0 API keys. cargo check + assemble --validate: both pass on 14 manifests. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
34 lines
845 B
Rust
34 lines
845 B
Rust
//! Manifest struct — deserialized from _manifests/*.toml.
|
|
//! One manifest = one agent. Source of truth; the .md file is generated.
|
|
|
|
use serde::Deserialize;
|
|
|
|
#[derive(Deserialize)]
|
|
pub struct Manifest {
|
|
pub name: String,
|
|
pub description: String,
|
|
pub tools: Vec<String>,
|
|
pub model: String,
|
|
pub role: String,
|
|
pub blocks: Vec<String>,
|
|
pub domain_in: Vec<String>,
|
|
pub forbidden_domain: Vec<String>,
|
|
pub handoff: Vec<Handoff>,
|
|
#[serde(default)]
|
|
pub output_extra_fields: Vec<String>,
|
|
pub memory_project: Option<String>,
|
|
pub project_claudemd: Option<String>,
|
|
pub references: Option<References>,
|
|
}
|
|
|
|
#[derive(Deserialize)]
|
|
pub struct Handoff {
|
|
pub target: String,
|
|
pub trigger: String,
|
|
}
|
|
|
|
#[derive(Deserialize)]
|
|
pub struct References {
|
|
#[serde(default)]
|
|
pub extra: Vec<String>,
|
|
}
|