playpen-pf-mig-skills
CLAUDE.md2 starsChanged 7 months agoApache-2.0View on GitHub
This is an experimental playpen for prototyping AI agent skills and tools that assist with migrating PatternFly 5 (PF5) codebases to PatternFly 6 (PF6). The focus is exploratory and educational. When adding experiments or skills: - Keep contributions small and focused on a single migration pattern or agent capability - Include context or notes explaining what was learned - This is not a production toolchain - prioritize learning over polish The code migration workflow is implemented across three parallel systems…
In this repository5 other files it gives its agents.
- ralph/CLAUDE.mdCLAUDE.md
- code-migrationSkill
- code-migrationSkill
- migration-comparisonSkill
- pf6-migrateSkill
The file
We split this CLAUDE.md into the rules it gives an agent
6 rules. About 0 are common, 4 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 18
When adding experiments or skills:
- Distinctive: line 19
Keep contributions small and focused on a single migration pattern or agent capability
- Distinctive: line 44
When modifying any code-migration file, propagate the change to its counterparts:
- Very specific: line 61
Use bold for emphasis on behavioral instructions the agent must follow (e.g., Do not skip any discoverable element.).
- Distinctive: line 62
Keep instructions succinct and unambiguous.
- Very specific: line 63
Use the term "subagent" explicitly when delegating (e.g., "Delegate to visual-fix subagent with...").
≈ “Common” is an estimate: at least 1 in 5 of the 26,980 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Repository Purpose
This is an experimental playpen for prototyping AI agent skills and tools that assist with migrating PatternFly 5 (PF5) codebases to PatternFly 6 (PF6). The focus is exploratory and educational.
What Belongs Here
- Agent prompts, workflows, and evaluation harnesses
- Scripts and tooling for migration experiments
- Notes and findings from migration trials
- Small, focused proof-of-concepts for automated refactoring
Guidelines for Contributions
When adding experiments or skills:
- Keep contributions small and focused on a single migration pattern or agent capability
- Include context or notes explaining what was learned
- This is not a production toolchain - prioritize learning over polish
Code Migration Skill / Recipe
The code migration workflow is implemented across three parallel systems targeting different agent runtimes. These must be kept in sync.
Mapping
| Goose (recipes) | Claude Code / Gemini (skills + agents) | Inline skill |
goose/recipes/migration.yaml | skills/code-migration/SKILL.md | skills/code-migration-inline/SKILL.md |
goose/recipes/subrecipes/*.yaml | agents/*.md | Instructions inlined in SKILL.md and targets/ |
goose/recipes/targets/*.md | skills/code-migration/targets/*.md | skills/code-migration-inline/targets/*.md |
goose/recipes/scripts/*.py | skills/code-migration/scripts/*.py | skills/code-migration-inline/scripts/*.py |
- Recipes (docs) are Goose YAML files with Jinja templates (
{{ param }}),prompt:/instructions:sections, and typedparameters:. - Subrecipes (docs) are child recipes invoked via the
subagenttool. They have structured parameter passing viavalues:. - Skills (Claude docs, Gemini docs) are
SKILL.mdmarkdown files with YAML frontmatter. No Jinja templates. - Agents / Subagents (Claude docs, Gemini docs) are markdown files in
agents/. They receive information via natural language from the main agent, not structured parameters. - Inline skill (
code-migration-inline) has all subagent instructions embedded directly in SKILL.md andtargets/. Use this when the runtime supports skills but not subagents.
Propagating Changes
When modifying any code-migration file, propagate the change to its counterparts:
- Subrecipe changed → Update the corresponding
agents/*.mdfile. Adapt Jinja templates to natural language. Remove recipe-specific constructs ({{ }},prompt:/instructions:split,values:). - Agent changed → Update the corresponding
goose/recipes/subrecipes/*.yamlfile. Add Jinja parameter references where the agent uses natural language inputs. - Main recipe changed → Update
skills/code-migration/SKILL.md. Recipe usessubagenttool invocations; skill uses "Delegate to<name>subagent" with natural language descriptions of inputs. - Skill changed → Update
goose/recipes/migration.yaml. - Target file changed (e.g.,
patternfly.md) → Update all three copies:goose/recipes/targets/,skills/code-migration/targets/,skills/code-migration-inline/targets/. The recipe version usesInvoke <subrecipe> sub-recipe with:and key-value params. The skill version usesDelegate to <subagent> subagent with:and natural language descriptions. The inline version has full procedural instructions with no delegation. - Script changed → Update all three copies:
goose/recipes/scripts/,skills/code-migration/scripts/,skills/code-migration-inline/scripts/.
Key Differences Between Formats
- Subagent inputs are not structured. Agents receive all context as natural language from the delegating agent. Describe inputs naturally (e.g., "the workspace directory path, the dev server command from project discovery") rather than as key-value pairs.
- Recipe subrecipes use structured parameters with
values:mapping and Jinja substitution. - Gemini CLI agents require explicit
tools:in YAML frontmatter (comment out; users are supposed to uncomment when they use the skill).
Style Rules for Instructions
- Use
**bold**for emphasis on behavioral instructions the agent must follow (e.g.,**Do not skip any discoverable element.**). Do not remove these when editing. - Keep instructions succinct and unambiguous.
- Use the term "subagent" explicitly when delegating (e.g., "Delegate to
visual-fixsubagent with...").
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

