Best for
- The user asks "what architecture should this use?", "is this stacked work?",
- The change touches runtime, state ownership, adapters, plugins, event loops,
- A repo has many issues/PRs that look individually valid but may not converge
majiayu000/spellbook/skills/architecture-foundation/SKILL.md
Design architecture foundations before implementation. Use when asked to design or refactor architecture, choose Rust/Go crate, package, module, runtime, workflow, or service boundaries, compare mature project architecture, prevent stacked one-off PRs, audit migration debt in existing repos, or produce a spec before coding.
Decision brief
Design architecture foundations before implementation.
Compatibility matrix
| Platform | Status | Evidence | What to check |
|---|---|---|---|
| Codex | Not declared | No explicit evidence | Portability before use |
| Claude Code | Not declared | No explicit evidence | Portability before use |
| Cursor | Not declared | No explicit evidence | Portability before use |
| Gemini CLI | Not declared | No explicit evidence | Portability before use |
Installation
The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.
npx skills add https://github.com/majiayu000/spellbook --skill "skills/architecture-foundation"Inspect the Agent Skill "architecture-foundation" from https://github.com/majiayu000/spellbook/blob/9e96aa5f52e8504cbbf9d359def29f9abcde57ce/skills/architecture-foundation/SKILL.md at commit 9e96aa5f52e8504cbbf9d359def29f9abcde57ce. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.
Workflow
1. Search first. - Inspect existing architecture docs, entrypoints, manifests, module trees, public APIs, open issues/PRs, and tests before proposing new structure. - If the user names a reference project, verify current source or official docs before treating it as evidence. -…
Do not use this for small, local fixes where the existing architecture is obvious and no boundary decision is needed.
Prefer a thin adapter around a mature runtime when the product does not need
For quick answers, return:
A proposed module cannot say which boundary it belongs to.
Permission review
No configured static risk pattern was detected
This is not proof of safety. Runtime behavior, indirect dependencies, and hidden external systems are outside the static scan.
Evidence record
| Signal | Value | Evidence type | Meaning |
|---|---|---|---|
| Quality score | 93/100 | Computed | Documentation, specificity, maintenance, and trust rules |
| Repository stars | 262 | Source | Repository attention, not individual Skill quality |
| Compatibility | 0 platforms | Source | Declared in the catalog source record |
| Usage guide | automated source guide | Editorial | Generated or reviewed according to the visible evidence level |
Pinned source
Use this skill to turn an architecture discussion into explicit boundaries, contracts, validation gates, and a small execution plan. The goal is not to copy an admired project, but to identify the project's shape and choose the minimum architecture that keeps ownership, effects, errors, and tests clear. For large existing repos, first explain the architecture they already have, then decide whether the work is boundary creation, boundary completion, or boundary deletion.
Do not use this for small, local fixes where the existing architecture is obvious and no boundary decision is needed.
product/app: entrypoints, user workflows, product-specific orchestration.core/domain: pure models, invariants, decisions, typed errors, no IO.runtime/application: lifecycle, scheduling, event dispatch, state mutation.adapters/backends: OS, renderer, provider, filesystem, network, database.plugins/components: optional capabilities behind explicit contracts.testing/headless: deterministic drivers, fake adapters, contract tests.intentional bridge, legacy compatibility, or
accidental fork; require an exit condition for compatibility paths.references/spec-template.md when the user needs a durable artifact.borrow from do_not_copy; borrow
boundary contracts, not scale artifacts, global registries, generated
machinery, historical migrations, or domain-specific complexity.For quick answers, return:
verdict:
chosen_shape:
state_owner:
boundaries:
contracts:
migration_debt:
validation:
risks:
next_steps:
For durable planning, create or update an architecture spec with:
objective
current evidence
reference models considered
chosen architecture
boundary map
source-of-truth map
contract matrix
compatibility/deletion plan
issue/PR map
validation matrix
P0/P1/P2 roadmap
open questions
references/rust-architecture-patterns.md when designing Rust crates,
runtimes, UI frameworks, app shells, schedulers, services, or developer tools.references/go-architecture-patterns.md when designing Go modules,
packages, services, ports/adapters, context-aware APIs, or concurrency flows.references/spec-template.md when producing a repo-facing spec.agents/openai.yaml only when a separate architecture review agent is
needed for cross-checking the chosen boundaries or migration plan.Frequently asked questions
Design architecture foundations before implementation.
The source record exposes this install command: npx skills add https://github.com/majiayu000/spellbook --skill "skills/architecture-foundation". Inspect the command and pinned source before running it.
Alternatives
oaustegard/claude-skills
Generate hierarchical _FEATURES.md files that describe what a codebase DOES from a user/consumer perspective, anchored to source symbols via tree-sitting. Supports large complex codebases through feature-driven decomposition into sub-feature files. Uses a multi-pass synthesis: orientation → detail → overview rewrite. Use when someone says "what does this do", "document features", "feature inventory", "_FEATURES.md", or needs to understand a codebase's purpose before modifying it. Complements tre
HKUDS/Vibe-Trading
Create, modify, and optimize quantitative trading strategies, then backtest and evaluate them.
vasilyu1983/AI-Agents-public
Guides iOS testing with XCTest, XCUITest, Swift Testing, simctl, and xcresult. Use when choosing destinations, controlling flakes, or parsing test artifacts for native apps.
brucesongs/kali-claw
Insecure Design (OWASP A06:2025) focuses on security flaws in system architecture and design phases, rather than code implementation-level bugs.