Skip to content

Latest commit

 

History

History
86 lines (52 loc) · 2.63 KB

File metadata and controls

86 lines (52 loc) · 2.63 KB

Structure-First

Korean | English

Note: This English text was translated and edited with LLM assistance. If anything reads awkwardly, please check the Korean version or open an issue.

Summary

structure-first is a skill for making the Primary Flow of code readable first. It keeps boundaries minimal, pushes detail downward, and favors contract-focused tests. The goal is to reduce change radius and side effects during complex changes.

Spec: agentskills.io | License: MIT | Agents: Codex, Claude Code

The optional structure-first-docs skill applies the same philosophy to engineering documents such as design docs, plans, and runbooks.

Quick Start

Install

npx skills add perhapsspy/structure-first

Try It

$structure-first implement this feature

When to Use

  • When state/condition branching makes top-down reading hard
  • When AI edits frequently create side effects
  • When tests break because they follow implementation details too closely

Install

Required

Start with structure-first first, then add companion skills only when needed.

  • Fast install via skills.sh: npx skills add perhapsspy/structure-first
  • Local install: copy skills/structure-first into your agent's local skills directory

Optional

  • structure-first-docs: optional companion skill that applies the same structural philosophy to document writing/review

Quick Prompt

# For implementation
$structure-first implement this feature

# For improving existing code
$structure-first analyze this code and propose improvements

# To apply the same philosophy to docs
$structure-first-docs write/review this design doc

Examples

More

Good Skills to Use Together

  • structure-first: organize code so the primary success path reads top-down
  • project-context: keep working context in the repo so later sessions can resume quickly

Support

Buy Me A Coffee

License

MIT