Agent Skill
2/7/2026

plugin-architecture

Architecture principles, skill patterns, and design guidance for building goal-based marketplace components

C
cuioss
1GitHub Stars
1Views
npx skills add cuioss/plan-marshall

SKILL.md

Nameplugin-architecture
DescriptionArchitecture principles, skill patterns, and design guidance for building goal-based marketplace components

name: plugin-architecture description: Architecture principles, skill patterns, and design guidance for building goal-based marketplace components user-invocable: false

Plugin Architecture Skill

REFERENCE MODE: This skill provides reference material. Load specific references on-demand based on current task. Do not load all references at once.

Pure reference skill providing architecture principles, skill patterns, and design guidance for building goal-based marketplace components.

What This Skill Provides

Architecture Foundation: Core principles for building marketplace components that follow skills best practices and goal-based organization.

Skill Patterns: 10 implementation patterns for building different types of skills (automation, analysis, validation, etc.).

Design Guidance: Workflow-focused skill design, thin orchestrator commands, and proper resource organization.

Pattern Type

Pattern 10: Reference Library - Pure reference skill with no execution logic. Load references on-demand based on current task.

When to Use This Skill

Activate when:

  • Creating new marketplace components - Agents, commands, skills, or bundles
  • Refactoring existing components - Migrating to goal-based architecture
  • Reviewing component design - Ensuring architecture compliance
  • Learning marketplace architecture - Understanding principles and patterns

Core Concepts

Goal-Based Organization

Principle: Organize by WHAT users want to accomplish (goals), not by WHAT component operates on (types).

User Goals:

  • CREATE - Create new marketplace components
  • DOCTOR - Diagnose and fix quality issues (unified workflow)
  • MAINTAIN - Keep marketplace healthy
  • ANALYZE - Investigate failures and permission prompts

Progressive Disclosure

Principle: Minimize initial context load, load details on-demand.

Levels:

  1. Frontmatter - Minimal metadata (~3 lines)
  2. SKILL.md - Full instructions (~400-800 lines)
  3. References - Detailed content (thousands of lines, loaded when needed)

Skill Naming Convention

Principle: Skill directory names are verb phrases (e.g., execute-task, manage-files). Noun suffixes — -executor, -manager, -runner, -handler, -orchestrator (and their plural forms) — are reserved for spawnable marketplace agents and MUST NOT appear at the end of a skill directory name. See references/skill-design.md for the full rule and enforcement.

Relative Path Pattern

Principle: All resource paths use relative paths from the skill directory for portability across installations.

Examples:

Read references/core-principles.md
bash scripts/analyzer.py
Load template: assets/template.html

When a skill is loaded, the host platform knows its installation directory and resolves relative paths from there.

Available References

Load references progressively based on current task. Never load all references at once.

#ReferenceFileLoad When
1Core Principlesreferences/core-principles.mdStarting component development, learning fundamentals, relative path pattern
2Skill Patternsreferences/skill-patterns.mdDesigning a new skill, choosing implementation pattern (10 patterns + combinations)
3Goal-Based Organizationreferences/goal-based-organization.mdUnderstanding goal-based vs component-centric, migration strategies
4Architecture Rulesreferences/architecture-rules.mdValidating compliance, self-containment, progressive disclosure requirements
5Skill Designreferences/skill-design.mdDesigning workflows, multi-workflow skills, workflow composition, skill naming convention (verb-first names; forbidden noun suffixes -executor/-manager/-runner/-handler/-orchestrator)
6Command Designreferences/command-design.mdCreating commands, parameter parsing, routing to skill workflows
7Token Optimizationreferences/token-optimization.mdOptimizing context, batch processing, token budgeting
8Reference Patternsreferences/reference-patterns.mdAllowed reference types, relative path implementation, portability
9Frontmatter Standardsreferences/frontmatter-standards.mdCreating/validating YAML frontmatter, field specs
10Script Standardsreferences/script-standards.mdDocumenting scripts, shell patterns, rule enforcement. For Python: Skill: pm-plugin-development:plugin-script-architecture
11Execution Directivereferences/execution-directive.mdEnsuring execution (not explanation), EXECUTE vs READ vs REFERENCE modes
12Minimal Wrapper Patternreferences/minimal-wrapper-pattern.mdThin orchestrators (<150 lines), agent-to-skill delegation, fat agent migration
13User-Facing Outputreferences/user-facing-output.mdOutput filtering, status messages, anti-patterns (no step numbers, no diffs)
14AskUserQuestion Patternsreferences/askuserquestion-patterns.mdInteractive workflows, free-text input, multi-select, UI constraints

Examples

ExampleFileShows
Goal-Based Skillreferences/examples/goal-based-skill-example.mdWorkflow organization, progressive disclosure in practice
Thin Orchestrator Commandreferences/examples/workflow-command-example.mdParameter parsing, skill invocation, user interaction
Pattern Usagereferences/examples/pattern-usage-examples.mdAll 10 patterns applied to marketplace scenarios

Usage Workflow

Step 1: Identify Your Goal and Load References

Never load all references — load only what's needed for current task.

GoalReferences to Load
Creating componentcore-principles.md, skill-patterns.md
Understanding architecturegoal-based-organization.md, architecture-rules.md
Designing skillskill-design.md, skill-patterns.md
Naming a new skillskill-design.md (Skill Naming Convention)
Designing commandcommand-design.md
Optimizing contexttoken-optimization.md
Validating compliancearchitecture-rules.md, reference-patterns.md
Ensuring executionexecution-directive.md
Designing thin wrappersminimal-wrapper-pattern.md
Designing user outputuser-facing-output.md
Designing user interactionsaskuserquestion-patterns.md

Step 2: Apply and Validate

Follow guidance in loaded references, then verify:

  • Self-contained (no external file references)
  • Relative path pattern used throughout
  • Progressive disclosure implemented
  • Appropriate skill pattern chosen
  • Goal-based organization followed

Integration with Other Skills

  • plugin-doctor — Uses architecture rules and reference patterns for compliance checking
  • plugin-create — Uses architecture principles, frontmatter standards, and validation rules
  • plugin-maintain — Uses architecture rules for fix guidance and compliance criteria

References

Source Materials

Related Skills

  • plan-marshall:dev-agent-behavior-rules - Core development principles and tool usage patterns
  • pm-plugin-development:plugin-script-architecture - Python implementation, testing, output contracts
Skills Info
Original Name:plugin-architectureAuthor:cuioss