Index of every page on this site: llms.txt
All skills
ganyuanran avatar

/brainstorming

@95d0733
by SeanRanganyuanran/aegis1.5k stars
83
Run it yourself

Use when defining ambiguous or high-complexity new features, product behavior, UI/component design, architecture choices, contract changes, or when grilling/pressure-testing a plan or design. Routine small requests stay on the fast path.

Use this Skill: https://skilld.dev/gh/ganyuanran/aegis/brainstorming

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

expanded-design-guidance.md

≈4k tokens on demand. Your agent reads this file only when SKILL.md points to it.

Expanded Design Guidance

This reference carries conditional design detail for brainstorming. It does not own routing. It also does not own the no-implementation gate, approval, or completion authority. Read only the section activated by current task evidence:

  • Design Probe when repository evidence is insufficient and a bounded probe can change the design direction.
  • Software Scenario Profiles after the relevant scenario class is known.
  • Documentation And Workspace Bootstrap only after the Doc Necessity Gate selects a spec or project workspace artifact.
  • Design Artifact Templates only for the one conditional artifact the current task evidence activates: baseline usage draft, requirement ready check, existence check, product risk lens, plan-time complexity budget, prior-art and reuse lens, or baseline role alignment.

Do not load this file for route selection, first-turn clarification, route-away cases, or an active Grilling Mode interview.

Contents

  • Design Probe
  • Software Scenario Profiles
  • Documentation And Workspace Bootstrap
  • Spec Self-Review
  • BASELINE-GOVERNANCE.md Template
  • Initial Baseline Snapshot Template
  • Design Artifact Templates

Design Probe

A probe is allowed only when it can change the design direction and existing repository evidence is insufficient:

Design Probe
- Question
- Expected decision impact
- Target and effect boundary
- Why existing evidence is insufficient
- Stop condition
- Evidence produced
- Cleanup

Prefer read-only execution. A disposable probe must not create a maintained owner, public contract, compatibility promise, or hidden persistence path. It is design evidence, not delivered implementation.

Software Scenario Profiles

Apply only the relevant profile instead of loading every lens for every task:

  • greenfield-feature: value, smallest deliverable behavior, minimum owner, acceptance, explicit future non-goals;
  • existing-system-change: current state, target state, the delta between them, preserved invariants, callers, migration, and retirement;
  • refactor: preserved observable behavior, owner/coupling defect, dependency direction, old-path retirement, behavior-preservation evidence;
  • public-contract: consumers, versioning, precedence, errors, compatibility, migration, negative cases;
  • persistence-migration: data owner, schema evolution, partial migration, crash recovery, backup/rollback, read/write cutover;
  • ui-workflow: compose ui-ux-governance for applicable experience rules and evidence; retain design/spec ownership in brainstorming;
  • security-permission: trust boundary, attacker capability, authority owner, sensitive data, downgrade/revocation, safe failure, auditability;
  • operational-release: deployment boundary, observability, partial rollout, rollback, compatibility window, operator recovery.

Documentation And Workspace Bootstrap

Use this section only after the main skill's Doc Necessity Gate selects a durable artifact.

  1. For first workspace creation, prefer configured Aegis workspace support:

    python <aegis-workspace-helper> init --root <target-project-root>

    If support is unavailable, create docs/aegis/README.md, docs/aegis/INDEX.md, and docs/aegis/BASELINE-GOVERNANCE.md from the template below. For an existing project, also create docs/aegis/baseline/YYYY-MM-DD-initial-baseline.md from the initial snapshot template. Reuse an existing docs/aegis/; never recreate it.

  2. Write the smallest validated spec artifact that stabilizes the task:

    • Spec Brief: docs/aegis/specs/YYYY-MM-DD-<topic>-brief.md for medium work that needs what/why/acceptance pinned before planning.
    • Design Spec: docs/aegis/specs/YYYY-MM-DD-<topic>-design.md for high complexity, architecture, contract, migration, cross-module, or ambiguous behavior requiring user review.

    Specs belong in specs/, never work/. Promote session drafts only after the Doc Necessity Gate passes.

  3. Register a newly created spec, then validate workspace structure:

    python <aegis-workspace-helper> append-index --root <target-project-root> --path docs/aegis/specs/<filename>.md --kind spec --title "<title>"
    python <aegis-workspace-helper> check --root <target-project-root>

    If workspace support is unavailable, append the entry manually. Updating an existing document does not add another index entry; superseding or deleting one updates the index. Structural validation does not grant completion authority.

  4. Commit the validated design document. Include the latest TaskIntentDraft, BaselineReadSetHint, BaselineUsageDraft, and ImpactStatementDraft only when they materially shaped it.

  5. Record explicit non-goals and compatibility boundaries. For cross-repo change surfaces, keep the durable contract ADR in its owning repository and carry only local impact elsewhere.

Spec Self-Review

Before user review, fix these inline:

  1. placeholders or vague requirements;
  2. internal contradictions;
  3. scope too broad for one implementation plan;
  4. requirements with multiple plausible interpretations;
  5. missing invariants, compatibility boundaries, owners, non-goals, ADR signals, or applicable first-principles findings.

BASELINE-GOVERNANCE.md Template

When manual workspace bootstrap is required, use this template:

# Baseline Governance

## 1. Baseline Roles
- Product / Requirement Baseline: confirmed requirement sources, target state,
  goals and scope, users / scenarios, requirement items, acceptance /
  verification criteria, non-goals, workflow constraints, open questions,
  change records, and approved requirement/spec intent.
- Architecture / Runtime Boundary Baseline: canonical owner, contract,
  source-of-truth boundary, dependency direction, compatibility, runtime-ready
  boundary, and retirement state.

## 2. Design Defect
A confirmed error, gap, contradiction, or wrong abstraction IN the relevant
requirement, design, or baseline.
- Fix the defective requirement/design/baseline first.
- Then align implementation to the corrected baseline.
- Do NOT patch implementation around a defective baseline.

## 3. Implementation Drift
Implementation, plan, review, or documentation has deviated from a confirmed,
correct, unchanged requirement or architecture baseline.
- Return to baseline via the simplest stable path.
- Do NOT "update baseline to match drift" without explicit review.

## 4. Compatibility Aliases
- Architecture Defect = architecture-scoped Design Defect.
- Architecture Drift = architecture-scoped Implementation Drift.
- New findings should report Design Defect / Implementation Drift plus
  `scope: requirements | architecture | both`.

## 5. Baseline Check Protocol
Before non-trivial changes:
1. Read the latest Product / Requirement Baseline candidate.
2. Read the latest Architecture / Runtime Boundary Baseline candidate.
3. Compare current work against requirement acceptance and architecture owner /
   contract boundaries.
4. Check for new anti-patterns not recorded in known list.
5. Report: aligned / Design Defect / Implementation Drift /
   missing-authority / needs-clarification, with
   `scope: requirements | architecture | both`.

## 6. Architecture Review — 7 Dimensions
After each non-trivial change:
1. **Ownership integrity** — every component has exactly one canonical owner
2. **Module boundaries** — no unauthorized cross-module coupling
3. **Contract changes** — all API/signature/behavior contract changes documented
4. **Cascade proliferation** — no new cascading dependency chains
5. **Dependency direction** — dependencies flow toward stability
6. **Retirement completeness** — old owners/fallbacks/paths removed or scheduled
7. **Entropy flow** — net complexity decreased or stayed; no unjustified new entities

## 7. Hard Boundaries
- BASELINE-GOVERNANCE.md is the constitution for THIS project's Aegis workspace
- Baseline snapshots in `baseline/` are evidence, not authority
- ADRs in `adr/` record decisions; they do not replace baseline governance
- This file is NEVER auto-updated — changes require explicit user review

Initial Baseline Snapshot Template

Bootstrap dual baselines instead of a flat repository inventory. Keep sections short and mark authority gaps explicitly when the project is sparse.

# <Project> Initial Baseline

Date: `YYYY-MM-DD`
Status: `initial dual-baseline snapshot`

## 1. Purpose
- why this baseline exists
- what later alignment checks should use it for

## 2. Workspace Structure
- top-level directories, entry points, substrate roots, or seams worth tracking

## 3. Current Authority Surfaces
- README / AGENTS / ADR / spec / baseline / external reference roots
- current authority gaps or missing documents

## 4. Product / Requirement Baseline
### 4.1 Current Truth
- confirmed requirement sources or current authority gaps
- target state, goals, scope, users, scenarios, and requirement items
- acceptance / verification criteria and evidence expectations

### 4.2 Non-negotiables
1. ...

### 4.3 Product Non-goals
- ...

## 5. Architecture / Runtime Boundary Baseline
### 5.1 Current Truth
- canonical owner or substrate split
- contract / source-of-truth boundary
- dependency direction or owner layering already fixed

### 5.2 Architecture Non-negotiables
1. ...

### 5.3 Architecture Non-goals
- ...

## 6. Ownership / Contract Snapshot
- important surface -> current owner
- contract seams, missing seam inventory, or boundary gaps

## 7. Current State and Risks
- current stage
- known risks, unknowns, or missing evidence

## 8. Alignment Use
- when to read each baseline role
- when to report `scope: both`

## 9. Compatibility Boundary
- what must NOT break during early work

Do not collapse this bootstrap into a generic checklist.

Design Artifact Templates

Templates and artifact-specific follow-up rules for the conditional design artifacts named in SKILL.md. Routing, approval, and completion authority stay in SKILL.md.

Baseline Usage Draft

Use a compact BaselineUsageDraft whenever the design direction depends on specific baseline docs or current-authority refs:

BaselineUsageDraft:
- Required baseline refs:
- Delivered context refs:
- Acknowledged before plan refs:
- Cited in design refs:
- Missing refs:
- Decision: continue | needs-baseline-readback | needs-verification | pause-for-user | blocked

Delivered context refs is optional host-projected bookkeeping only. It is not authoritative proof that a host injected or the model internally consumed a context payload. The artifact exists to make baseline/context attention drift visible before the design is recommended or approved.

Requirement Ready Check

Use a compact Requirement Ready Check before recommending a design when the requirement is not already confirmed and complete:

Requirement Ready Check:
- Requirement source refs:
- Goals and scope refs:
- User / scenario refs:
- Requirement item refs:
- Acceptance / verification criteria refs:
- Open blocker questions:
- Decision: ready | needs-source | needs-goal-alignment | needs-scenario | needs-acceptance-criteria | needs-clarification | needs-user-decision | blocked

Treat task intent, conversation, source documents, and agent inference as candidate requirement sources until project authority confirms them. If the decision is not ready, keep the design at proposal/spec clarification level; do not turn the gap into implementation tasks.

Existence Check

Existence Check: Before recommending an approach that adds a new owner, skill, artifact, host adapter, fallback, compatibility path, workflow step, or benchmark metric, check whether it needs to exist. Use docs/current/AEGIS_MINIMALITY_REFERENCE.md as the reference. Do not force this onto ordinary feature design that reuses existing owners and artifacts.

Existence Check:
- Proposed new surface:
- Existing owner / reuse candidate:
- Why existing surface is insufficient:
- Creation proof:
- Entropy / retirement impact:
- Decision: reuse-existing | add-with-proof | defer | reject | needs-first-principles-review

If the decision is reuse-existing, recommend the reuse path instead of a new surface. If the decision is add-with-proof, carry the proof, verification signal, and any retirement trigger into the design/spec.

Product Risk Lens

Product Risk Lens: For ambiguous product, feature, UI, workflow, or architecture choices, add a compact review lens, not persona roleplay:

Product Risk Lens:
- Value:
- Non-goals:
- Trade-offs:
- Decision needed:

This is a review lens, not persona output. It does not override baseline evidence, approved requirements, or current authority docs; it only makes the product risk and decision point visible before implementation.

Plan-Time Complexity Check And Complexity Budget

Plan-Time Complexity Check: Before choosing an implementation direction for medium/high work, inspect the likely owner files and current shape. This is an advisory design pressure check, not a gate and not completion authority. Do not force it onto tiny low-risk edits.

Use using-aegis/references/complexity-governance.md for the shared artifact classes, pressure-signal interpretation, and over-budget handling.

Complexity Budget:
- Artifact class:
- Target files / artifacts:
- Current pressure:
- Projected post-change pressure:
- Budget result: within-budget | at-risk | over-budget
- Planned governance:

Plan-Time Complexity Check:
- Better file boundary:
- Recommendation: edit-in-place | extract helper | add owner file | split task | defer refactor

Prior-Art And Reuse Lens

Prior-Art & Reuse Lens: When a candidate approach would introduce a new mechanism, protocol, artifact shape, or nontrivial interaction pattern, check proven external practice before inventing one. This lens is behavior-triggered: research precedents when the direction is novel for the project, plausible approaches remain after internal reuse checks, or the domain sits outside current repository evidence. Do not run research ceremony for routine work that already maps to well-known framework patterns, and do not let an unavailable web/search tool stall approach selection.

Prior-Art & Reuse Lens:
- Searched precedents: <bounded sources; index-first summary; cite anchor per claim>
- Adopt verbatim: <proven pattern + source>
- Adapt with reason: <tailored part -> project constraint / non-negotiable it maps to>
- Reject with reason: <project fact that makes the pattern inapplicable>
- Degraded: <no web/search tooling -> external basis unknown; internal-only evidence stated>

Search results are evidence candidates, not prompt payload: summarize index-first and cite anchors instead of pasting raw pages. An "industry standard" claim without a citable anchor stays unknown. Every adapt/reject decision binds to a named project constraint or fact, not taste. The lens feeds only the approach recommendation; it stays advisory and grants no completion authority.

Baseline Role Alignment

Baseline Role Alignment: When a question may involve both "what should be built" and "where it should live", keep requirement truth separate from architecture truth:

Baseline Role Alignment:
- Product / Requirement Baseline:
- Architecture / Runtime Boundary Baseline:
- Result: aligned | Design Defect | Implementation Drift | missing-authority | needs-clarification
- scope: requirements | architecture | both
- Next action:

Use Design Defect when the relevant requirement, design, or baseline is wrong. Use Implementation Drift when the work deviates from a correct unchanged baseline. Architecture Defect and Architecture Drift remain compatibility aliases for architecture-scoped Design Defect and architecture-scoped Implementation Drift. This is a review lens, not a runtime gate or completion authority.

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 warning2d3 checks · Risk SAFE
  • Gen Agent Trust Hub6d

    The brainstorming skill defines a structured workflow for software design and plan interrogation. It grounding its analysis in repository evidence and manages documentation through specialized Python tools and subagent-led reviews. No security vulnerabilities or malicious patterns were found.

  • Socket2d

    No alerts

  • Snyk6d

    Risk: MEDIUM · 1 issue

Signed by skilld at 95d0733. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 2 weeks ago

README badge

README badge for ganyuanran/aegis/brainstorming