Skip to content

Add plonecli Agent Skill and 'skill install/update' command#98

Merged
MrTango merged 10 commits into
masterfrom
add-plonecli-skill
May 21, 2026
Merged

Add plonecli Agent Skill and 'skill install/update' command#98
MrTango merged 10 commits into
masterfrom
add-plonecli-skill

Conversation

@MrTango
Copy link
Copy Markdown
Contributor

@MrTango MrTango commented May 21, 2026

Summary

  • Add a plonecli Agent Skill that teaches AI coding agents how to scaffold and develop Plone packages with the copier-template based plonecli, including reference docs for the create, add, and maintain workflows.
  • Ship the skill inside the package at plonecli/skills/plonecli/ (single source, included in the wheel) and expose it at the repo root via .agents/skills/plonecli and .claude/skills/plonecli symlinks.
  • Add plonecli skill install | update | status to install the skill into a project (default) or globally for the user (--scope user). Following the Agent Skills open standard, it writes one copy to .agents/skills/plonecli (the standard discovery path) and links it from .claude/skills/plonecli, so Claude Code, Codex, Gemini CLI, Cursor and other compatible agents all load the same SKILL.md. Supports --copy (no symlinks) and --force.
  • Add the rendered backend demo gif (docs/demo-backend.gif) for the existing demo-backend.tape.

Test plan

  • tests/test_skill.py covers install/update/status, the existing-install guard, copy-only, and the CLI command (7 tests)
  • Full non-integration suite passes (73 tests)
  • Skill files are present in a built wheel
  • Verify the skill triggers on plonecli-related prompts in a real agent — loaded in Claude Code from the relocated path via the .claude/skills/plonecli symlink
  • Confirm reference docs render correctly — frontmatter parses, code fences balanced, all reference links resolve

MrTango and others added 5 commits April 17, 2026 15:29
git pull --ff-only fails when origin has been rebased or force-pushed.
Since the copier-templates clone is plonecli-managed, refresh it via
fetch + hard-reset to origin/<branch> instead.
Install vhs, agg, ttyd (plus asciinema and ffmpeg) in the devcontainer
so demo screencasts can be rendered from scripted tapes.

Add three vhs tapes covering the main plonecli template categories —
backend, REST API, classic UI — and the recording-driver prompt that
documents pacing and prompt-driving conventions.
Re-applies the claude-code-devcontainer template: host Claude config sync
in setup-claude.sh, drop OpenCode, split firewall rules for Plone/PyPI and
remove defunct statsig/opencode hosts, preserve container on stop for fast
restart, and track copier answers (incl. extra_mounts for the live
copier-templates bind and terminal-recording toolchain).
Documents create/add/setup/serve/test/debug/update/config commands,
with template/subtemplate gating and reconfigure flows. Reference docs
cover project creation, feature subtemplates, and maintenance.

Corrects the addon vs backend_addon distinction (addon is a composite
of backend_addon + zope-setup, not an alias), notes that the invoke
harness (tasks.py) comes from the zope-setup layer, and documents the
PLONECLI_TEMPLATES_DIR override for templates discovery.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@MrTango MrTango changed the title Add plonecli skill for scaffolding and developing Plone packages Add plonecli Agent Skill and 'skill install/update' command May 21, 2026
MrTango added 2 commits May 21, 2026 18:19
Relocate the bundled Agent Skill to plonecli/skills/plonecli (canonical,
ships in the wheel) and expose it at the repo root via .agents/skills and
.claude/skills symlinks. Add a 'skill' command that installs the same
SKILL.md into a project or user scope following the Agent Skills open
standard, so Claude Code, Codex, Gemini CLI, Cursor and other compatible
agents load it from one source.
Convert the 15 MB animated GIF screencast to a 4.2 MB VP9 WebM and point
the vhs tape at the new output. The bulky GIF is also dropped from the
branch history so it never enters the repository pack.
@MrTango MrTango force-pushed the add-plonecli-skill branch from 32f0f65 to 8b6c4dc Compare May 21, 2026 15:20
MrTango added 3 commits May 21, 2026 18:25
Add a Demo section with an HTML5 video embed of the WebM screencast and a
fallback link for renderers that do not play inline video.
Instruct the skill to scaffold a GenericSetup upgrade step via
'plonecli add upgrade_step' whenever profiles/default XML changes must
reach already-installed sites. Document the subtemplate prompts, what it
modifies, and which profile changes need a step.
@MrTango MrTango merged commit 3830746 into master May 21, 2026
6 checks passed
@MrTango MrTango deleted the add-plonecli-skill branch May 21, 2026 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant