Skip to content
Skill

Manage patterns and rules

Guides the agent through authoring project design patterns and coding rules

Manage patterns and rules is an open-source agent skill for developer tools. It is available on Claude Code.

Scripts
None
Platforms
Claude Code
GitHub stars
162
Last commit
License
AGPL-3.0
Listing updated

Similar skills

About Manage patterns and rules

This skill walks an agent through changing the design pattern and coding rule definitions that an architect-mcp setup uses to check a project. It starts by reading the project's architect.yaml, RULES.yaml, template mapping and existing rules, then looks up which patterns apply to a target file before any edit is made. Drafts of a rule or pattern, including its file selectors and examples, are meant to be approved by the user before config writes happen, with extra care for inherited or global changes.

The workflow relies on architect-mcp admin tools such as add-design-pattern, add_rule and validate-architect, and it explicitly warns against guessing argument keys. After edits, the agent re-queries patterns and runs a code change review on affected files, then tests the change against representative matching and non-matching paths. It finishes with an impact summary and rollback guidance. Where a review needs an agent backend, the skill asks for consent first.

Using it requires an architect-mcp server with the admin tools available in the project, plus access to the project's configuration files.

When your agent uses it

Author project design patterns and coding rules with architect-mcp admin tools. Trigger when the user asks to change pattern or rule definitions. Do not trigger for reviewing existing code against unchanged rules.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 1 file (1 KB) on GitHub on 3 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

This skill ships in the aicode-admin plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

/plugin marketplace add AgiFlow/aicode-toolkit
/plugin install aicode-admin@aicode-toolkit

Or copy only this skill to ~/.claude/skills/manage-patterns-and-rules:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/AgiFlow/aicode-toolkit.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/manage-patterns-and-rules &&
cp -R "$tmp/plugins/aicode-admin/skills/manage-patterns-and-rules" ~/.claude/skills/manage-patterns-and-rules &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/manage-patterns-and-rules inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/manage-patterns-and-rules to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/AgiFlow/aicode-toolkit.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/manage-patterns-and-rules &&
cp -R "$tmp/plugins/aicode-admin/skills/manage-patterns-and-rules" ~/.agents/skills/manage-patterns-and-rules &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/manage-patterns-and-rules inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/manage-patterns-and-rules to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/AgiFlow/aicode-toolkit.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/manage-patterns-and-rules &&
cp -R "$tmp/plugins/aicode-admin/skills/manage-patterns-and-rules" ~/.cursor/skills/manage-patterns-and-rules &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/manage-patterns-and-rules inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/AgiFlow/aicode-toolkit.git --path plugins/aicode-admin/skills/manage-patterns-and-rules

Or copy the folder to ~/.gemini/skills/manage-patterns-and-rules yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/manage-patterns-and-rules:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/AgiFlow/aicode-toolkit.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/manage-patterns-and-rules &&
cp -R "$tmp/plugins/aicode-admin/skills/manage-patterns-and-rules" ~/.copilot/skills/manage-patterns-and-rules &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/manage-patterns-and-rules inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/AgiFlow/aicode-toolkit.git

Then copy aicode-toolkit/plugins/aicode-admin/skills/manage-patterns-and-rules into your agent's skills folder as manage-patterns-and-rules. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Pattern and rule authoring
Drafts design patterns and coding rules with file selectors and examples before writing them.
Config inspection
Reads architect.yaml, RULES.yaml, template mappings and existing rules before making changes.
Approval before writes
Requests user approval for config changes, especially inherited or global ones.
Post-change review
Re-queries patterns and runs a code change review on the edited files.
Fixture testing
Checks changes against matching and non-matching example paths.
Rollback guidance
Summarizes the impact of a change and explains how to revert it.

Good for

  • Add a new coding rule for file naming in a TypeScript project
  • Update an existing design pattern's file selectors
  • Create a rule that restricts imports between architecture layers
  • Review the impact of a rule change before rolling it out
  • Validate architect.yaml after editing project configuration

Manage patterns and rules FAQ

When does Manage patterns and rules trigger?

It triggers when the user asks to change pattern or rule definitions. It does not trigger for reviewing existing code against rules that stay unchanged.

What tools does Manage patterns and rules need?

It uses architect-mcp admin tools, including get-file-design-pattern, add-design-pattern, add_rule, validate-architect and review-code-change.

Does Manage patterns and rules change files without asking?

No. The workflow asks for approval before config writes, especially inherited or global changes, and asks for consent before invoking agent backends.

How do I install Manage patterns and rules in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/manage-patterns-and-rules to use it in all your projects, or to .claude/skills/manage-patterns-and-rules in one project. Or install the aicode-admin plugin, which includes it: /plugin marketplace add AgiFlow/aicode-toolkit, then /plugin install aicode-admin@aicode-toolkit.

Does Manage patterns and rules run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use Manage patterns and rules?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

What are the best alternatives to Manage patterns and rules?

The closest alternatives to Manage patterns and rules are Architect, Develop feature, Patterns, Writing rules and Architecture reasoning.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from AgiFlow/aicode-toolkit

  1. Makes your agent write a design philosophy, then render it as a PNG or PDF poster

    • Open source
    • 162 GitHub stars
    • Design and media
  2. Lets your agent drive your own Chrome browser through Playwright snippets

    • Open source
    • 162 GitHub stars
    • Browser automation
  3. Guides the agent through creating or updating reusable project templates and scaffolds

    • Open source
    • 162 GitHub stars
    • Developer tools
  4. Scaffolds a new application from a scaffold-mcp boilerplate after confirming template

    • Open source
    • 162 GitHub stars
    • Developer tools
  5. Sets up AI Code Toolkit templates and project metadata in a workspace

    • Open source
    • 162 GitHub stars
    • Developer tools
  6. Finds the project's existing themes, CSS classes and UI components before styling

    • Open source
    • 162 GitHub stars
    • Design and media