marketplace/bundles/pm-plugin-development/skills/plugin-maintain/SKILL.md
Comprehensive maintenance skill for marketplace components - update components, manage knowledge, maintain READMEs, restructure, and apply orchestration compliance
npx skillsauth add cuioss/plan-marshall plugin-maintainInstall 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.
Comprehensive maintenance automation for marketplace bundles. Consolidates update, knowledge management, README maintenance, refactoring, and orchestration compliance into a single skill with progressive disclosure.
Execution mode: Select workflow based on parameters and execute. Load only the reference guide needed for that workflow.
Prohibited actions:
Constraints:
python3 .plan/execute-script.py commandThis skill provides 5 maintenance workflows:
Context Reduction: Load only what's needed per workflow.
| Workflow | Reference Loaded | Lines | |----------|------------------|-------| | update-component | component-update-guide.md | ~650 | | add-knowledge | knowledge-management-guide.md | ~600 | | update-readme | readme-maintenance-guide.md | ~550 | | refactor-structure | refactoring-strategies-guide.md | ~600 | | apply-orchestration | orchestration-compliance.md | ~600 |
Total Context Per Workflow: ~1,400 lines (SKILL.md + reference) vs Loading Everything: ~3,800 lines (75% reduction)
Script: pm-plugin-development:plugin-maintain → maintain.py
| Subcommand | Purpose |
|------------|---------|
| analyze | Analyze component for quality and improvement opportunities |
| check-duplication | Check for duplicate knowledge when adding content |
| update | Apply updates to a component file |
| readme | Generate README content from bundle inventory |
All scripts are stdlib-only with TOON output.
| Asset | Purpose |
|-------|---------|
| readme-template.md | Template for README generation (assets/readme-template.md) |
Goal: Update existing agent or command with improvements.
Parameters:
component_path (required): Path to component fileimprovements (required): Description of improvements to applyverify (optional): Run diagnosis after update (default: true)Skill: pm-plugin-development:plugin-architecture
Skill: plan-marshall:dev-agent-behavior-rules
These provide architecture principles and non-prompting tool usage patterns.
Read: references/component-update-guide.md
Run component analysis:
python3 .plan/execute-script.py pm-plugin-development:plugin-maintain:maintain analyze --component {component_path}
Parse JSON output to understand:
Check that proposed improvements:
Use maintain.py update or Edit tool to apply changes:
python3 .plan/execute-script.py pm-plugin-development:plugin-maintain:maintain update --component {component_path} --updates '{"updates": [...]}'
Or use Edit tool for precise modifications.
If verify=true:
Report results including:
Goal: Add external knowledge to skill with duplication prevention.
Parameters:
skill_path (required): Path to skill directorysource (required): URL or file path to knowledge sourcetopic (required): Topic/category for the knowledgeload_type (optional): How to load - on-demand, conditional, always (default: on-demand)Skill: pm-plugin-development:plugin-architecture
Skill: plan-marshall:dev-agent-behavior-rules
These provide architecture principles and non-prompting tool usage patterns.
Read: references/knowledge-management-guide.md
Verify skill directory exists and has:
If URL: Use WebFetch to retrieve content If file: Read the file
python3 .plan/execute-script.py pm-plugin-development:plugin-maintain:maintain check-duplication --skill-path {skill_path} --content-file {content_file}
Parse JSON output:
duplication_detected: Booleanduplication_percentage: 0-100recommendation: proceed, consolidate, or skipIf duplication found:
Use AskUserQuestion for confirmation.
Create reference file in skill/references/:
Add reference based on load_type:
Goal: Synchronize README with current marketplace state.
Parameters:
bundle_path (optional): Path to bundle (default: all bundles)force (optional): Overwrite even if manual edits detected (default: false)Skill: pm-plugin-development:plugin-architecture
Skill: plan-marshall:dev-agent-behavior-rules
These provide architecture principles and non-prompting tool usage patterns.
Read: references/readme-maintenance-guide.md
For each bundle:
python3 .plan/execute-script.py pm-plugin-development:plugin-maintain:maintain readme --bundle-path {bundle_path}
Parse JSON output for:
Read current README.md if exists:
If manual edits detected and not force:
Use Write tool to update README.md.
Report:
Goal: Restructure components for better organization.
Parameters:
scope (required): What to refactor - component, bundle, or marketplacestrategy (required): Refactoring strategy to applySkill: pm-plugin-development:plugin-architecture
Skill: plan-marshall:dev-agent-behavior-rules
These provide architecture principles and non-prompting tool usage patterns.
Read: references/refactoring-strategies-guide.md
For each component in scope:
python3 .plan/execute-script.py pm-plugin-development:plugin-maintain:maintain analyze --component {component_path}
Identify:
Based on strategy:
Execute refactoring plan:
Run plugin-doctor on affected components. Report any issues introduced.
Goal: Apply bundle-by-bundle orchestration compliance patterns.
Parameters:
command_path (required): Path to diagnose command to updateverify (optional): Verify compliance after update (default: true)Skill: pm-plugin-development:plugin-architecture
Skill: plan-marshall:dev-agent-behavior-rules
These provide architecture principles and non-prompting tool usage patterns.
Read: references/orchestration-compliance.md
This contains:
Verify command is a diagnose command:
Read command file and check for:
Using Edit tool, add or update:
If verify=true:
Each workflow handles errors:
The canonical argparse surface for maintain.py. The plugin-doctor analyzer (_analyze_manage_invocation.py) reads this section as source-of-truth for the manage-invocation-invalid and missing-canonical-block rules. Consuming docs xref this section by name instead of restating the command inline. See pm-plugin-development:plugin-script-architecture cross-skill-integration.md § "Script invocation in documentation".
python3 .plan/execute-script.py pm-plugin-development:plugin-maintain:maintain update \
--component COMPONENT [--updates UPDATES]
python3 .plan/execute-script.py pm-plugin-development:plugin-maintain:maintain check-duplication \
--skill-path SKILL_PATH --content-file CONTENT_FILE
python3 .plan/execute-script.py pm-plugin-development:plugin-maintain:maintain analyze \
--component COMPONENT
python3 .plan/execute-script.py pm-plugin-development:plugin-maintain:maintain readme \
--bundle-path BUNDLE_PATH
tools
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