marketplace/bundles/pm-plugin-development/skills/plugin-script-architecture/SKILL.md
Script development standards covering implementation patterns, testing, and output contracts
npx skillsauth add cuioss/plan-marshall plugin-script-architectureInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
For script execution patterns, see: plan-marshall:tools-script-executor
Activate when:
Load: standards/python-implementation.md
Load: standards/testing-standards.md
Load: standards/test-scaffolding.md
Contains: Canonical # ruff: noqa: I001, E402 + sys.path.insert(0, ...) prologue for tests that import underscore-prefixed sibling modules from marketplace/bundles/.../scripts/. Citation: test/plan-marshall/plan-marshall/test_phase_handshake.py lines 2 and 20-29.
Load: standards/output-contract.md
Load: standards/cross-skill-integration.md
CRITICAL: Scripts run via the executor must follow cross-skill integration patterns for imports, logging, and error handling.
See: standards/cross-skill-integration.md § "Script invocation in documentation"
The explicit-call-or-xref authoring rule for documented script invocations plus the ## Canonical invocations section contract. Every documented python3 .plan/execute-script.py {notation} … call must be the exact-correct inline call or an xref to the owning skill's Canonical-invocations section, and every script-bearing skill publishes that section. Enforced at edit time by the manage-invocation-invalid and missing-canonical-block plugin-doctor rules.
references/notation-spec.md - Full notation specificationreferences/stdlib-modules.md - Allowed Python standard library modulesplan-marshall:tools-script-executor - Script execution, notation resolution, plan-marshall commandpm-dev-python:python-best-practices - General Python patterns (type hints, docstrings, async, data structures). This skill covers marketplace-specific script constraints (stdlib-only, executor integration, TOON output); for broader Python development standards, load that skill insteadtools
Plan-marshall-domain implementor of the ext-self-review-{domain} extension point. Surfaces deterministic candidates (regexes, user-facing strings, markdown sections, symmetric-pair functions, flag-guard pairs, contract sources, schema-bearing files) for pre-submission structural self-review.
development
The single shared contract every untrusted-external-content ingestion surface loads — reader/orchestrator/writer isolation, the deterministic validator script as the containment boundary, and the output-schema discipline for candidate structs parsed from web pages, GitHub issue/PR/comment bodies, and Sonar issue messages
development
Domain-invariant recipe for deliberate wide-scope simplification campaigns across a scope x thoroughness cell, with a T4+ relation-graph pre-deliverable
testing
A test skill for README generation