FORGEBUILD
Use this skill to apply the canonical NexusOS FORGEBUILD procedure from:
/Users/pafi/.nexus/procedures/FORGEBUILD.md- GitHub mirror:
cryptopafi/nexus:procedures/FORGEBUILD.md
Do not use the obsolete exported forge skill as authority when it points to FORGE.md or forge_version: 1.4. Treat that as legacy context only. The live standard is FORGEBUILD v2.1.
Workflow
- Read the relevant section of
/Users/pafi/.nexus/procedures/FORGEBUILD.md. - Choose the path:
CREATE: new NexusOS procedure.CONVERT: existing procedure into a skill/plugin.ASSEMBLE: full plugin bundle with skills, commands, hooks, docs, and metadata.PORTABLE-SKILL: one shared skill core with runtime-specific targets and generated SKILL.md outputs.
- If the output is a skill, run the mandatory
SKILL-SEARCHgate before building from scratch. - If no duplicate skill exists, run the mandatory
COMPONENT-REUSEscan before new build work. - Create only the minimum procedure/skill/plugin files required for the task.
- Validate with the relevant validator before delivery.
- Save meaningful discoveries or deliverables to Cortex and record a short Genie handoff.
Portable Skill Path
Use PORTABLE-SKILL when a skill needs runtime-native frontmatter across Codex, Claude Code, Hermes, or OpenClaw-compatible targets.
Required structure:
skills-src/<skill>/
├── SKILL.core.md
├── targets/<runtime>/frontmatter.yaml
└── build/<runtime>/SKILL.md
Run the deterministic helper when available:
python3 /Users/pafi/.nexus/scripts/forgebuild-portable-skill.py lint /path/to/skills-src/<skill>
python3 /Users/pafi/.nexus/scripts/forgebuild-portable-skill.py build /path/to/skills-src/<skill>
Rules:
- Do not create a separate
skillforgeskill.skillforgeis only an internal implementation name if needed. - Keep
SKILL.core.mdruntime-neutral. - Keep model IDs and runtime paths in
targets/<runtime>/frontmatter.yamlor wrappers. - Generated
build/<runtime>/SKILL.mdfiles are outputs; do not hand edit them.
Mandatory Gates
Skill Search
Before creating a new skill, search:
/Users/pafi/.codex/skills/Users/pafi/.agents/skills/Users/pafi/.claude/plugins/Users/pafi/.nexus/library/repos/nexusos-skills/Users/pafi/.nexus/library/repos/nexusos-pluginscryptopafi/nexusandcryptopafi/claude-pluginsthroughghwhen local sources are insufficient- Cortex
procedurescollection forskill:<name>or related workflow names
If a matching skill exists, prefer import/adapt over rebuilding.
Component Reuse
If no duplicate exists, search for reusable pieces:
- Browser/web extraction skills.
- Cortex store/search skills.
- Reporter/output skills.
- Audit/critic skills.
- Domain-specific skills relevant to the requested workflow.
Reuse by dependency or narrow adaptation. Do not duplicate large existing workflows just to place them under a new skill name.
Skill Creation Rules
- Use lowercase hyphen-case folder names.
- Keep
SKILL.mdconcise; move long references into separate files only when they are directly useful. - Frontmatter must include
nameand a trigger-richdescription. - Descriptions must include when to use the skill and at least one clear anti-pattern when appropriate.
- For portable skills, generated runtime frontmatter must stay provider-native: Codex targets do not use
claude-*; Claude Code targets do not usegpt-*. - Validate Codex skills with:
python3 /Users/pafi/.codex/skills/.system/skill-creator/scripts/quick_validate.py /Users/pafi/.codex/skills/<skill-name>
When to Use vs Alternatives
forgebuild: use for reusable procedures, skill conversion, plugin bundles, and persistent workflow standardization.skill-creator: use for Codex skill mechanics and validator expectations.opt: use only to optimize a prompt; do not execute the optimized task.github: use when repository metadata, issues, PRs, or GitHub API access is needed.