Skip to content
Back to skills

Authoring Plugins

ASecurity

Scaffolds and audits whole agent plugins. Use when the user wants to create a new plugin directory (manifest, README, skills folder) or to audit or validate an existing plugin: its structure, .claude-plugin/plugin.json, components, portability and compliance. Also use after a plugin's components change. Not for a single skill (use authoring-skills), a single sub-agent (use authoring-subagents), rules, AGENTS.md or hooks (use authoring-instructions), APM packaging (use packaging-with-apm), or ...

  • 8 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 9, 2026
ai-agentspythonbash

Works with

  • mcp

Security analysis

A100/100

Pro scans all 20 files and shows the line behind each finding

Scanned November 23, 2026

npx -y skills add richfrem/agent-plugins-skills --skill authoring-plugins --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Authoring Plugins?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Authoring Plugins
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/richfrem-authoring-plugins/badge)](https://www.skillsdirectory.com/skills/richfrem-authoring-plugins)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: authoring-plugins
plugin: agent-extension-authoring
description: >-
  Scaffolds and audits whole agent plugins. Use when the user wants to create a new plugin directory (manifest, README, skills folder) or to audit or validate an existing plugin: its structure, .claude-plugin/plugin.json, components, portability and compliance. Also use after a plugin's components change. Not for a single skill (use authoring-skills), a single sub-agent (use authoring-subagents), rules, AGENTS.md or hooks (use authoring-instructions), APM packaging (use packaging-with-apm), or Microsoft 365 Copilot Cowork app-package creation and distribution (use packaging-copilot-cowork-plugins).
argument-hint: "[create|audit] [plugin-name or path]"
allowed-tools: Bash, Read, Write, Glob, Grep
---

# Authoring Plugins (`authoring-plugins`)

Creates an APM-native plugin skeleton and audits a plugin as a whole; component audits are delegated to the sibling skills by name.

## Contents

- [Constraints](#constraints) • [Modes](#modes) • [Quick start](#quick-start) • [Workflow](#workflow) • [Verification](#verification) • [References](#references)

## Constraints

1. **Pure APM-native layout**: primitives live inside `.apm/` (`.apm/skills/`, `.apm/agents/`, `.apm/hooks/`, `.apm/prompts/`, `.apm/instructions/`); never maintain duplicate root `skills/`, `agents/` or `hooks/` folders alongside `.apm/`.
2. **Self-contained skills**: scripts, references and assets live inside the skill that uses them (`.apm/skills/<skill>/`); no plugin-root shared files, no copy manifests (`symlinks.json`), no symlinks.
3. **Dual manifests**: `apm.yml` at the plugin root defines APM package metadata; `.claude-plugin/plugin.json` has an `author` object (`{"name": "...", "email": "..."}`) and never lists `skills`, `agents`, `hooks` or `commands` (auto-discovered).
4. **Portable**: no `/Users/` or `/home/` paths; use skill-relative paths or `${CLAUDE_PLUGIN_ROOT}`.
5. **No cross-plugin imports**; refer to other plugins' skills by name.
6. Audits are read-only.

## Modes

| Mode | Use when | Entry point | Reference |
|---|---|---|---|
| `create` | New plugin | `scripts/scaffold_plugin.py` | [create-plugin.md](references/modes/create-plugin.md) |
| `audit` | Validate a plugin | `scripts/audit_plugin_structure.py`, `scripts/audit.py` | [audit-plugin.md](references/modes/audit-plugin.md) |

## Quick start

```bash
python3 scripts/scaffold_plugin.py --name <plugin-name> --path plugins [--with-hooks] [--with-mcp]
python3 scripts/audit_plugin_structure.py plugins/<plugin-name>
python3 scripts/audit.py --path plugins/<plugin-name>
```

`audit.py` runs the per-skill audit through the sibling `authoring-skills` skill and warns when it is not installed.

## Workflow

1. Pick the mode and read its reference.
2. Create: scaffold (`apm.yml`, `.claude-plugin/plugin.json`, `.apm/skills/`, `README.md`), then add components with `authoring-skills`, `authoring-subagents` and `authoring-instructions`.
3. Audit: run both scripts, then delegate skills, sub-agents, rules and hooks to those skills by name.
4. On failure follow [fallback-tree.md](references/fallback-tree.md).

For a Cowork deliverable, this skill creates only the APM-native source plugin.
Use `authoring-skills` for the individual Agent Skill and
`packaging-copilot-cowork-plugins` for the Microsoft 365 app-package ZIP and distribution
lifecycle; the M365 manifest is not `apm.yml` or `plugin.json`.

## Verification

```bash
python3 scripts/audit_plugin_structure.py plugins/<plugin-name>
python3 scripts/audit.py --path plugins/<plugin-name>
```

Tests: `python3 -m pytest tests`. Check the mode's section in [acceptance-criteria.md](references/acceptance-criteria.md).

## References

- Modes: [create-plugin.md](references/modes/create-plugin.md) • [audit-plugin.md](references/modes/audit-plugin.md)
- Detail: [create-plugin-guide.md](references/create-plugin-guide.md) • [audit-plugin-guide.md](references/audit-plugin-guide.md)
- Gates: [acceptance-criteria.md](references/acceptance-criteria.md) • [fallback-tree.md](references/fallback-tree.md)
- Templates: [README.md.jinja](assets/templates/README.md.jinja)

Files in this skill

  • SKILL.md3.7 KB
  • assets/templates/README.md.jinja509 B
  • evals/evals.json2.2 KB
  • references/acceptance-criteria.md1.5 KB
  • references/audit-plugin-guide.md6.1 KB
  • references/create-plugin-guide.md4.8 KB
  • references/fallback-tree.md2.8 KB
  • references/modes/audit-plugin.md2.9 KB
  • references/modes/create-plugin.md2.5 KB
  • scripts/assert_audit.py5.2 KB
  • scripts/audit.py10.6 KB
  • scripts/audit_plugin_l5_execute.py1.2 KB
  • scripts/audit_plugin_paths.py9.1 KB
  • scripts/audit_plugin_structure.py14.7 KB
  • scripts/check_plugin_boundaries.py8.6 KB
  • scripts/fix_plugin_load_errors.py9.2 KB
  • scripts/inventory_plugin.py16.9 KB
  • scripts/load_context.py4.2 KB
  • scripts/path_reference_auditor.py14.3 KB
  • scripts/plugin_paths_whitelist.json224 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.