canon

Maintain code patterns documentation by updating `.patterns/<name>.md` files from source code.

25|5|Updated May 9, 2026
One-click install
npx skills add https://github.com/kamp-us/phoenix --skill canon-kamp-us
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: canon
Source: https://github.com/kamp-us/phoenix/tree/main/claude-plugins/kampus-pipeline/skills/canon
Command: npx skills add https://github.com/kamp-us/phoenix --skill canon-kamp-us

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill automates the maintenance of code patterns documentation, ensuring it stays up-to-date with the source code and associated references.

Core Features & Use Cases

  • Bootstrap Mode: Initializes missing or thin documentation from source code.
  • Incremental Refresh Mode: Updates existing documentation to reflect changes in the source code.
  • Repo-Agnostic: Functions independently of the specific repository structure.
  • Output Standards: Produces flat .patterns/<name>.md files in a consistent house style.

Quick Start

Run the canon skill with the command: /canon

Frequently Asked Questions about canon

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate code patterns documentation maintenance for my repository?

You can automate code patterns documentation maintenance by running a skill that identifies source code changes and applies them to corresponding documentation files. It supports bootstrap mode for initial setup and incremental refresh mode to update existing docs.

What is the best way to generate documentation from source code for specific patterns?

Generating documentation from source code for specific patterns requires a tool that scans your repository and outputs flat `.patterns/<name>.md` files. Bootstrap mode initializes missing or thin documentation directly from the source code in a consistent house style.

Does this code documentation update tool work with any repository structure?

Yes, this code documentation update tool is repo-agnostic, meaning it functions independently of your specific repository structure. It maintains pattern documentation by detecting source code changes and updating the corresponding reference files.

How do I incrementally update existing code documentation to reflect recent source code changes?

To incrementally update existing code documentation, you use the incremental refresh mode. This mode detects changes in the source code and applies them to the existing documentation files to ensure they stay synchronized with the current codebase.

What grounding sources do I need to maintain code pattern documentation?

To maintain code pattern documentation, you need access to the repository source code and specific grounding sources defined in a CLAUDE.md file. These inputs allow the documentation maintenance process to accurately identify and apply code changes.

Why does my source code analysis documentation get outdated so quickly?

Source code analysis documentation gets outdated quickly when updates are manual. Using an automated incremental refresh mode identifies and applies source code changes to the corresponding documentation files, keeping them continuously synchronized.