Standards update

From SkillPanel/maister · View interactive version

Standards update is an AI agent skill from the GitHub repository SkillPanel/maister. Update or create project standards from conversation context or explicit description

How to use this skill

Skill file

Update Project Standards

Update or create standards in .maister/docs/standards/ based on conversation context or a provided description. Automatically detects the best-matching category and file. Supports both baseline categories (global, frontend, backend, testing) and custom user-defined categories.

Usage

/maister:standards-update                                    # Detect from conversation
/maister:standards-update "always use React.memo for lists"  # From description
/maister:standards-update --from=/path/to/other-project      # Sync from another project

Mode: Sync from External Project (`--from=PATH`)

When --from=PATH is provided, the skill switches to sync mode — importing standards from another project's .maister/docs/standards/ into the current project. This bypasses Phases 1-3 and uses a dedicated flow.

SYNC STEP 1: Validate Source

  1. Resolve the path (absolute or relative to cwd)
  2. Check PATH/.maister/docs/standards/ exists. If not, inform the user and stop.
  3. Check .maister/docs/standards/ exists in the current project. If not, offer to run /maister:init first.

SYNC STEP 2: Analyze Differences

  1. Scan source project's standards/*/ — list all categories and files
  2. Scan current project's standards/*/ — list all categories and files
  3. For each source file, compare against the local counterpart:
  1. Present a summary to the user via AskUserQuestion (multi-select):

SYNC STEP 3: Apply Selected Standards

For each selected standard:

SYNC STEP 4: Update INDEX.md

Invoke docs-operator subagent via Task tool (subagent_type: maister:docs-operator):

"Regenerate INDEX.md to include all newly added/updated standards. Verify CLAUDE.md integration."

Wait for docs-operator to complete, then immediately proceed to SYNC STEP 5.

SYNC STEP 5: Summarize

Display: standards added, standards updated, standards skipped, and total count. Suggest reviewing the imported standards and committing.


Mode: Conversation / Description (default)

When --from is NOT provided, the skill uses the standard detect-and-update flow below.


PHASE 1: Detect Standard

Step 1: Gather input

Step 2: Discover existing categories and files

Scan .maister/docs/standards/*/ to find all existing categories and standard files. This determines what's available — not limited to baseline categories.

Step 3: Match to category and file

Based on the topic detected, suggest the best-matching existing category and file. Consider:

Step 4: Present suggestion


PHASE 2: Determine Action

Check if the target file exists:

No user prompt needed — just inform: "Updating existing standard: [name]" or "Creating new standard: [category/name]"


PHASE 3: Gather Standard Content

If updating

  1. Read current content
  2. Show summary of existing practices
  3. Ask what to add/change
  4. Extract: new practices, modifications, removals, code examples

If creating

  1. Inform user of target path
  2. Ask for practices, conventions, code examples, do's/don'ts
  3. Optionally show plugin baseline if similar standard exists in docs-manager's bundled docs

PHASE 4: Apply via docs-manager

Each standard uses a ### heading with 1-10 lines description (excluding code snippets). Multiple standards per topic file. Split large topics into sub-topic files.

Invoke docs-operator subagent via Task tool (subagent_type: maister:docs-operator) with context:

For updates:

"Update documentation file: standards/[category]/[name].md. Current content: [content]. Add/change: [new conventions]. Integrate new practices, maintain markdown formatting, organize logically, preserve existing unless conflicts. Update INDEX.md entry with practice-specific description (enumerate actual practices, not generic category)."

For creates:

"Create documentation file: standards/[category]/[name].md. Category: [category]. Content: [conventions]. Create with proper markdown, organized sections, code examples. Add to INDEX.md with practice-specific description. Verify CLAUDE.md integration."

Wait for docs-operator to complete, then immediately proceed to Phase 5.


PHASE 5: Summarize

Display a summary: what was updated/created, practices added, and next steps (review, commit, share with team). If docs-operator reported a failure, say so.


Prerequisites

If .maister/docs/ doesn't exist, offer to run /maister:init first.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.