Install
$ agentstack add skill-miaoy0ushan-fp-semantic-architecture ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README — it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming — see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps — measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
FP: Semantic Architecture
Create a lightweight architecture sketch after MVP scope is deleted.
This skill turns a scoped MVP into a small module map so the agent can build the MVP first and avoid accidental coupling.
Do not write code while using this skill.
Use when
Use this skill after delete-scope when:
- The task describes a project, system, new feature, refactor, workflow, or automation.
- The work may span multiple modules, files, skills, templates, or docs.
- The MVP nucleus is clear but module boundaries are not obvious.
- Scope could expand quickly.
- Coupling risk matters.
- The agent is tempted to plan implementation without first identifying module boundaries.
Do not use this skill for:
- typo fixes,
- small documentation edits,
- obvious one-file changes,
- narrowly scoped bug fixes with clear files and checks.
Goal
Produce a concise semantic architecture report that defines:
- the project goal,
- the smallest MVP slice,
- the main modules,
- module relationships,
- high-coupling risks,
- decoupling rules,
- MVP-first build order,
- deferred modules,
- the recommended next FP step.
This skill is for planning and context reduction. It is not a graph database, automatic repository indexer, diagram engine, or runtime.
Core principle
Architecture is useful only if it helps the agent do less.
The report should make the next task smaller, safer, and easier to verify.
Inputs
Use available context from:
- the user request,
delete-scopeoutput,- stated goal,
- likely real goal,
- success criteria,
- non-goals,
- failure paths,
- known project structure if provided.
If project structure is unknown, first perform the smallest bounded local read-only discovery needed to identify the relevant files, modules, or runtime facts. Infer only non-blocking details and label them as assumptions.
- If the missing fact is current, versioned, or external, load
templates/context-retrieval-contract.md. - If the gap is a user-owned product or policy decision, return
Decision: ask_userand ask only that blocking question. - Do not use reusable pattern memory as a substitute for task-local discovery.
- When module mapping reveals recurring patterns, check the memory graph (
node fp/contracts/memory-graph.js cluster) for relevant schema or lesson cards that may inform architecture decisions. Loadtemplates/memory-graph-traversal.mdfor cluster retrieval protocol.
Procedure
1. Restate the clarified goal
Use the MVP nucleus from delete-scope if available.
Scoped MVP:
...
2. Define the MVP slice
Identify the smallest useful version that proves the goal.
Ask:
If only 20% can be built now, what proves this is worth continuing?
Output:
MVP slice:
...
The MVP slice must be smaller than the full idea.
3. Identify modules
List only the modules relevant to the MVP and immediate architecture decision.
For each module, include:
- name:
purpose:
owns:
should not own:
status: MVP | later | avoid
A module may be a code area, skill, template, document, state artifact, or workflow step.
4. Map relationships
Describe relationships in plain text.
Use directional dependencies:
A -> B: reason
Prefer simple relationships:
- produces
- consumes
- validates
- informs
- should not depend on
- optional input
Do not invent a complex graph schema.
5. Draw a lightweight diagram
Use ASCII or Mermaid-style text if helpful.
Keep it small enough to scan.
Example:
[question-requirements]
-> [delete-scope]
-> [semantic-architecture]
-> [optimize-path]
-> [execution-brief]
[execution-result]
-> [evidence-ledger]
-> [adaptive-improvement, only when ledger evidence supports a reusable change]
6. Identify coupling risks
Ask:
Where could this design become too tangled?
Which module might start owning too much?
Which optional module might become a hard dependency?
What future feature would pull this off the MVP path?
Output concrete coupling risks.
7. Define decoupling rules
Write rules that keep the MVP modular.
Good rules:
- local context discovery must stay bounded, read-only, and task-specific.
- adaptive-improvement may propose a skill-patch candidate only after an Evidence Ledger supports it; it must not modify skills automatically.
- semantic-architecture should guide planning, not become a required runtime.
Bad rules:
- Keep it modular.
- Make it clean.
8. Define MVP-first build order
List the smallest sequence of work.
Each item should be verifiable.
1. Add semantic-architecture skill.
2. Add semantic-architecture-report template.
3. Add one example using FP itself.
4. Update README and AGENTS.md to make the skill optional.
9. Defer non-MVP work
List what should not be built now.
Typical deferrals:
- graph database,
- automatic diagram generation,
- repository-wide indexing,
- runtime dependency graph,
- visual UI,
- forced architecture step for small tasks.
10. Choose next skill
Usually choose:
delete-scopeif the MVP scope is still too large,optimize-pathif the MVP is clear,shorten-iterationif the work is still too large.
For needs_context, do not route to schema-memory; it stores generalized repeated patterns, not raw task context. Record the smallest read-only next step instead:
- inspect only the relevant local files, manifests, or runtime state when the missing fact is local;
- load
templates/context-retrieval-contract.mdwhen the missing fact is current, versioned, or external; - return
Decision: ask_useronly when the unresolved gap is a user-owned decision rather than a discoverable fact.
Output contract
Return:
# Semantic Architecture Report
## Clarified Goal
## MVP Slice
## Modules
## Module Relationships
## Lightweight Diagram
## Coupling Risks
## Decoupling Rules
## MVP-first Build Order
## Deferred Modules
## Decision
## Recommended Next Skill
Decision values
Choose one:
mvp_ready
reduce_scope
needs_context
ask_user
stop
Use:
mvp_readywhen the module map is clear enough foroptimize-path.reduce_scopewhen too many modules are being pulled into the first version.needs_contextwhen a discoverable local or external fact blocks the module map.ask_userwhen a blocking product or policy choice belongs to the user and cannot be discovered from evidence.stopwhen the architecture would violate the project's non-goals or make the workflow too heavy.
Failure mode
If architecture cannot be sketched safely from available context, do not invent detail.
Return:
Decision: needs_context
Context class: local | external_versioned
Missing context:
...
Smallest context needed:
...
Read-only next step:
...
Recommended Next Skill: none
For Context class: local, inspect only the named local files or state and then rerun this step. For external_versioned, use templates/context-retrieval-contract.md. If the gap is actually a user-owned decision, return Decision: ask_user with one blocking question, a recommendation, and the main alternative.
Constraints
- Do not write code.
- Do not create a complex graph system.
- Do not require this skill for small tasks.
- Do not turn optional modules into hard dependencies.
- Do not expand the MVP.
- Do not replace
delete-scope; this skill should consume its MVP nucleus. - Do not route task-local context discovery to
schema-memory. - Do not invoke
adaptive-improvementwithout an Evidence Ledger that supports a reusable change. - Do not produce architecture that cannot be verified by the next task.
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: MiaoY0uShan
- Source: MiaoY0uShan/FP
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.