agentleFS
konveyor-ecosystemkonveyor-ecosystem/playpen-pf-mig-skills/CLAUDE.md

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…

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
  1. Distinctive:

    When adding experiments or skills:

    line 18
  2. Distinctive:

    Keep contributions small and focused on a single migration pattern or agent capability

    line 19
  3. Distinctive:

    When modifying any code-migration file, propagate the change to its counterparts:

    line 44
  4. Very specific:

    Use bold for emphasis on behavioral instructions the agent must follow (e.g., Do not skip any discoverable element.).

    line 61
  5. Distinctive:

    Keep instructions succinct and unambiguous.

    line 62
  6. Very specific:

    Use the term "subagent" explicitly when delegating (e.g., "Delegate to visual-fix subagent with...").

    line 63

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

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.yamlskills/code-migration/SKILL.mdskills/code-migration-inline/SKILL.md
goose/recipes/subrecipes/*.yamlagents/*.mdInstructions inlined in SKILL.md and targets/
goose/recipes/targets/*.mdskills/code-migration/targets/*.mdskills/code-migration-inline/targets/*.md
goose/recipes/scripts/*.pyskills/code-migration/scripts/*.pyskills/code-migration-inline/scripts/*.py
  • Recipes (docs) are Goose YAML files with Jinja templates ({{ param }}), prompt: / instructions: sections, and typed parameters:.
  • Subrecipes (docs) are child recipes invoked via the subagent tool. They have structured parameter passing via values:.
  • Skills (Claude docs, Gemini docs) are SKILL.md markdown 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 and targets/. Use this when the runtime supports skills but not subagents.

Propagating Changes

When modifying any code-migration file, propagate the change to its counterparts:

  1. Subrecipe changed → Update the corresponding agents/*.md file. Adapt Jinja templates to natural language. Remove recipe-specific constructs ({{ }}, prompt: / instructions: split, values:).
  2. Agent changed → Update the corresponding goose/recipes/subrecipes/*.yaml file. Add Jinja parameter references where the agent uses natural language inputs.
  3. Main recipe changed → Update skills/code-migration/SKILL.md. Recipe uses subagent tool invocations; skill uses "Delegate to <name> subagent" with natural language descriptions of inputs.
  4. Skill changed → Update goose/recipes/migration.yaml.
  5. 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 uses Invoke <subrecipe> sub-recipe with: and key-value params. The skill version uses Delegate to <subagent> subagent with: and natural language descriptions. The inline version has full procedural instructions with no delegation.
  6. 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-fix subagent with...").

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.