AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Design Architecture

skill-senolisci-mykg-design-architecture · by SenolIsci

>

No reviews yet
0 installs
35 views
0.0% view→install

Install

$ agentstack add skill-senolisci-mykg-design-architecture

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No 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.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-senolisci-mykg-design-architecture)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
2mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

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 →
Are you the author of Design Architecture? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Design Architecture Skill

This skill performs a structured architecture review by dispatching four specialist subagents in parallel, then consolidating their findings into a maintained architecture.md document. One of the four subagents is a dedicated adversarial red-team agent that probes failure paths, invariant bypasses, and silent corruption scenarios that the structural review agents would not naturally surface.

The goal is not to produce a one-time report — it's to maintain a living architectural record that evolves as the codebase evolves. The to-do list inside architecture.md becomes the actionable roadmap.


Workflow

Step 1 — Read existing architecture.md (if it exists)

Before spawning subagents, check whether architecture.md already exists in the project root. If it does, read it so you understand what was previously documented, what to-dos are already tracked, and what changes have already been logged. This context shapes what the subagents should focus on (new ground vs. follow-up on prior findings).

Step 2 — Spawn four subagents in parallel

Launch all four at once (same message, parallel Agent tool calls). Each subagent is defined in .claude/agents/ — use the subagent_type parameter to route to each one:

| Subagent | File | subagent_type | Lens | |----------|------|-----------------|------| | System Architect | .claude/agents/system-architect.md | system-architect | Pipeline structure, orchestration, re-entry | | Software Architect | .claude/agents/software-architect.md | software-architect | Code design, abstractions, invariant enforcement | | Data Architect | .claude/agents/data-architect.md | data-architect | Data models, formats, deduplication, output correctness | | Adversarial Architect | .claude/agents/adversarial-architect.md | adversarial-architect | Failure paths, LLM adversarial output, silent corruption |

Each agent file contains its full focus areas, files to read, questions to answer, and required report format. You do not need to repeat those instructions in the prompt — the agent definitions carry them. Just tell each agent what to do:

Perform a full architecture review of the mykg codebase at:
/Users/senolisci/Desktop/antigravity projects/mykg

Read your agent definition for full instructions on what to examine and how to format your report.
[Optional: if architecture.md already exists, include a note like: "Pay particular attention to previously
flagged issues in areas X and Y — check whether they have been addressed."]

The Adversarial Architect has a different mandate from the other three: it is not looking for design improvements, only failure paths. Give it the same prompt — its agent definition constrains its focus.

Step 3 — Consolidate findings

After all four subagents return, synthesize their reports:

  • De-duplicate overlapping findings (multiple subagents may flag the same issue)
  • Identify cross-cutting themes (e.g., if all three structural agents mention poor error handling, that's a priority)
  • Treat Adversarial Architect findings separately: every Critical Failure Path gets its own to-do item tagged [critical], regardless of whether it overlaps with structural findings. These are not design suggestions — they are concrete exploitable paths.
  • Prioritize: rank issues by impact × urgency
  • Distinguish "fix now" from "consider later" from "track but defer"

Step 4 — Write or update architecture.md

Write the consolidated findings to architecture.md in the project root using this template:

# Architecture

Last reviewed: [date]

## System Overview
[2-4 sentence description of what the system does and how it's structured at the highest level]

## Architecture Diagram
[ASCII or text diagram of the major components and data flow — update as the system changes]

## Design Decisions
[Brief summary of the key decisions from CLAUDE.md that shape the architecture — D4, D5, D7, D15, etc.
Link to CLAUDE.md for the full record. Only include the decisions that most affect the structural choices.]

## Current State Assessment
[Honest 2-3 sentence assessment: what's solid, what needs work, what's incomplete]

---

## To-Do List

Items are tagged: `[critical]` `[high]` `[medium]` `[low]` and `[done]` when complete.
Add new items at the top. Never delete done items — mark them `[done]` so the history is preserved.

| # | Priority | Area | Task | Added | Done |
|---|----------|------|------|-------|------|
| 1 | [priority] | [System/Software/Data] | [specific actionable task] | [date] | — |

---

## Change Log

Track architectural changes here as they are made. Each entry should say what changed and why.

| Date | Change | Reason |
|------|--------|--------|
| [date] | [what changed architecturally] | [why — drove by which issue/decision] |

---

## Subagent Findings (latest review)

### System Architect
[Paste or summarize the findings from the System Architect subagent]

### Software Architect
[Paste or summarize the findings from the Software Architect subagent]

### Data Architect
[Paste or summarize the findings from the Data Architect subagent]

### Adversarial Architect
[Paste or summarize the Critical Failure Paths, Moderate Risks, and Invariant Violation Analysis from the Adversarial Architect]

If architecture.md already exists:

  • Preserve the existing Change Log — append to it, never rewrite it
  • Preserve existing [done] to-do items — they are historical record
  • Add new to-do items at the top of the table with today's date
  • Update the "Last reviewed" date and "Current State Assessment"
  • Replace the "Subagent Findings (latest review)" section with the new findings
  • Update the System Overview and Diagram only if the architecture has materially changed

Step 5 — Report back to the user

After writing architecture.md, give the user a short summary:

  • How many issues were found and by which lens (system / software / data / adversarial)
  • The top 3 priority to-do items from the structural agents
  • The top 2 critical failure paths from the Adversarial Architect — these should always be called out explicitly even if they overlap with structural findings, because they represent concrete exploitable scenarios, not abstract concerns
  • Whether any Key Invariants from CLAUDE.md appear to have bypass paths
  • Point them to architecture.md for the full picture

Maintaining architecture.md over time

Every time this skill runs, it updates the same architecture.md file. This creates a living record:

  • To-do list grows as new issues are found; items are marked [done] when addressed (never deleted)
  • Change log grows as architectural changes are made
  • Subagent findings section is replaced each run with the latest review

Encourage the user to mark to-do items as [done] manually as they implement changes, or you can update them when you observe that a previously-flagged issue has been resolved in the code.


Notes on the mykg codebase

Key reference: CLAUDE.md in the project root contains 28 design decisions (D1–D28) and 5 key invariants. These are authoritative. Subagents should treat deviations from them as issues, not as opportunities to suggest alternatives (unless the deviation reveals the decision itself was flawed).

Key structural paths:

  • Pipeline entry: src/mykg/pipeline.py, src/mykg/cli.py
  • Pass 1: src/mykg/pass1.py, src/mykg/chunker.py
  • Pass 2: src/mykg/pass2.py
  • Assembly: src/mykg/assembler.py
  • Export: src/mykg/exporter.py
  • Steps: src/mykg/steps/
  • LLM adapters: src/mykg/llm/
  • Spec docs: docs/superpowers/specs/, docs/superpowers/plans/

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.