Skip to content

AGI-comming/functional-skill-creator / skills/fskill-creator/sub-skills/migrate

fskill-creator-migrate

Verified

Migrate lane for fskill-creator; analyzes a legacy skill directory into behavior map, function split proposal, and source evidence.

functions/extract_shared_references.md

View on GitHub
# extract_shared_references

## Purpose

Identify duplicated rules, glossary terms, schemas, and policies that should go into references.

## Input

| Field | Required | Description |
|---|---:|---|
| `legacy_skill` | yes | Loaded source skill data. |
| `migration_proposal` | yes | Proposed function split and orchestration. |
| `script_plan` | no | Proposed deterministic helpers and script tests. |

## Output

| Field | Description |
|---|---|
| `reference_plan.references` | Reference files to create or update. |
| `reference_plan.glossary_terms` | Shared terms and stable field definitions. |
| `reference_plan.policies` | Shared policies or constraints. |
| `reference_plan.schemas` | Reusable input or output schemas. |
| `reference_plan.script_rules` | Shared script usage rules or script I/O contracts. |
| `reference_plan.source_links` | Source sections for each reference item. |

## Logic

1. Extract terms and rules used by multiple proposed functions.
2. Move stable schemas into references; do not duplicate them across functions.
3. Keep function-local edge cases in the owning function contract.
4. Preserve original wording for critical policies where possible.
5. When multiple functions call scripts, put reusable script I/O conventions into references.

## Errors

| Code | When |
|---|---|
| `[MISSING_MIGRATION_PROPOSAL]` | Missing `migration_proposal`. |
| `[REFERENCE_CONFLICT]` | Shared rules conflict across source sections. |

## Observability

Record glossary term count, policy count, schema count, script rule count, and conflicts.
reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis.Stars: 469kUpdated Claude CodeCodexVerifiedInstall
diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.Stars: 321kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 321kUpdated Claude CodeCodexVerifiedInstall
executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is availableStars: 321kUpdated Claude CodeCodexVerifiedInstall