skills/recursive-skill-forge/SKILL.md
Meta-cognitive smithy for forging new skills on demand. Use this skill whenever the federation encounters a novel domain, an unhandled workflow, or a capability gap that no existing skill covers. This skill performs abductive reasoning to infer what capabilities are needed, decomposes them into orthogonal modules, scaffolds a governed SKILL.md, attests it against constitutional floors, and presents the artifact for sovereign seal. It operates recursively: it can forge skills for other organs, and it can forge improved versions of itself. Plastic across domains. Modular by design. Attested before birth.
npx skillsauth add ariffazil/openclaw-workspace Recursive Skill ForgeInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
This is the skill that makes skills. It is not a static playbook — it is a generative mold that produces governed playbooks. It thinks in tiers:
| Tier | Cognition | What It Does | Authority Ceiling | |------|-----------|--------------|-------------------| | AGI | Bounded, modular | Decomposes problem, scaffolds skill, runs tests | Forge low-risk skills autonomously | | ASI | Synthetic, cross-domain | Composes multi-step workflows, abstracts patterns, bundles scripts | Forge medium-risk skills; present for seal | | APEX | Constitutional judgment | Validates against F1–F13, attests evidence, renders SEAL/SABAR/HOLD/VOID | No autonomous forge; every skill requires Arif ack | | AAA | Control plane | Hosts the artifact, updates registry, writes evolution ledger | Execution only after APEX verdict |
Plasticity principle: The forge does not care whether the domain is GitHub, Docker, petrophysics, or constitutional law. It applies the same orthogonal decomposition and attestation pipeline to any domain.
Recursive principle: If the forge detects its own limitation, it can propose a v2 of itself. But self-modification is treated as apex-tier — it always requires Arif ack.
| Input | Required | Description | |-------|----------|-------------| | intent | yes | What the new skill should enable an agent to do | | domain | yes | Which federation organ or cross-organ surface | | trigger_phrases | yes | User utterances that should invoke this skill | | risk_tier | yes | low / medium / high / critical | | tier | no | AGI (default) / ASI / APEX — determines gate depth | | existing_skills_checked | yes | List of existing skills evaluated and rejected |
Cognitive mode: Fast abduction (System 0 — pattern leap).
coverage / complexity ratio.Output: abduction_note.md — hypotheses, selected path, rationale.
Cognitive mode: Bounded observation (System 1 — pattern matching).
registries/skills.yaml to identify overlapping skills.
AGENTS.md and repo AGENTS.md for domain-specific rules.Orthogonality test: If removing one module breaks only one function, the decomposition is clean. If removing one module breaks everything, redesign.
Output: decomposition_map.yaml — modules, interfaces, organ ownership.
Cognitive mode: Deliberate synthesis (System 2 — structured reasoning).
SKILL_TEMPLATE.md:
id, name, description, risk_tierversion_lock with artifact_hash: pendingOutput: SKILL.md draft + examples.md (if complex) + scripts/ (if needed).
Cognitive mode: Execution intelligence (A-FORGE — build under governance).
skills/<skill-id>/scripts/evals/evals.json:
description is "pushy" — it must trigger when relevant:
Output: Complete skill directory ready for validation.
Cognitive mode: Governance integrity (arifOS — floor enforcement).
Run the skill through F1–F13 validation:
| Floor | Validation Question | Gate | |-------|---------------------|------| | F1 Amanah | Is every action reversible or requiring ack? | BLOCK if irreversible action lacks ack gate | | F2 Truth | Does the skill claim capabilities it cannot verify? | BLOCK if hallucinated tool references | | F3 Witness | Are test cases and evidence required? | BLOCK if no evals defined | | F4 Clarity | Is the procedure unambiguous? | BLOCK if "use judgment" appears without constraints | | F5 Peace | Could this skill harm human dignity? | BLOCK if output could shame/blame without evidence | | F6 Empathy | Does the skill consider weakest stakeholder? | WARN if no human-impact assessment | | F7 Humility | Does the skill declare its own limits? | BLOCK if no "When NOT to Use" section | | F8 Genius | Is the design elegant? Is there a simpler path? | SABAR if over-engineered | | F9 Anti-Hantu | Does the skill detect manipulation? | BLOCK if no injection guard for user inputs | | F10 Ontology | Does the skill preserve structural coherence? | BLOCK if it violates repo routing constitution | | F11 Authority | Does the skill stay within its authority? | BLOCK if it approves actions, overrides judge, or self-approves | | F12 Injection | Are all inputs sanitized? | BLOCK if user input flows directly to shell/file without validation | | F13 Sovereign | Is Arif the final gate? | BLOCK if skill can commit, push, deploy, or seal without human ack |
If any BLOCK triggers: Return VOID. Do not proceed. Report violations to sovereign.
Output: constitutional_attestation.yaml — floor-by-floor pass/fail with evidence.
Cognitive mode: Ethical critique (WELL — human impact).
arif_heart_critique on the drafted skill:
Output: maruah_report.json — κᵣ, risks, empathy hooks added.
Cognitive mode: Evidence preservation (VAULT999 — trace).
Output: evidence_receipt.json + benchmark.json (if subagents available).
Cognitive mode: Resource awareness (OPS/777 — cost estimator).
Output: ops_estimate.json — tokens, blast_radius, delta_S.
Cognitive mode: Constitutional verdict (APEX — final arbitration).
Present the candidate skill to Arif with this exact panel:
┌─────────────────────────────────────────────────────────────────┐
│ SKILL CANDIDATE — AWAITING SOVEREIGN VERDICT │
├─────────────────────────────────────────────────────────────────┤
│ ID: <skill-id> │
│ Name: <skill-name> │
│ Domain: <domain> │
│ Tier: <AGI | ASI | APEX> │
│ Risk: <low | medium | high | critical> │
│ ΔS: <entropy delta> │
│ κᵣ: <empathy score> │
├─────────────────────────────────────────────────────────────────┤
│ Floor Status │
│ F1–F13: <pass / fail per floor> │
│ Attestation: <constitutional_attestation.yaml path> │
│ Evidence: <evidence_receipt.json path> │
├─────────────────────────────────────────────────────────────────┤
│ Verdict Options │
│ SEAL → Commit to skills/ and update registry │
│ SABAR → Commit with modifications (specify below) │
│ HOLD → Pause. Requires more evidence or redesign. │
│ VOID → Reject. Violates constitutional floors. │
└─────────────────────────────────────────────────────────────────┘
Await Arif's explicit verdict before proceeding to Stage 999.
Cognitive mode: Immutable anchoring (VAULT999 — ledger).
If verdict = SEAL or SABAR (with modifications applied):
skills/<skill-id>/SKILL.mdskills/<skill-id>/MODIFICATIONS.mdregistries/skills.yaml:
wiki/log.md:
forge: <skill-id> — <brief description>
Tier: <tier> | Risk: <risk_tier> | ΔS: <delta>
Attestation: constitutional floors passed
Verdict: <SEAL | SABAR> by Arif
REPO=ariffazil/AAA
If verdict = HOLD or VOID:
skills/_archive/<skill-id>-<date>/skills/_archive/<skill-id>-<date>/VOID_REASON.mdThis skill can forge improved versions of itself. The loop:
recursive-skill-forge-v2 to Arif at Stage 888Invariant: Every self-improvement must pass Stage 888. No autonomous self-modification.
.github/workflows/, floors.py, or vault999/ without Arif ack## Skill Forge Report
- **Skill ID:** <id>
- **Name:** <name>
- **Tier:** <AGI | ASI | APEX>
- **Risk Tier:** <low | medium | high | critical>
- **Domain:** <domain>
- **Abduction Path:** <H1 | H2 | H3>
- **Modules:** <list of orthogonal modules>
- **Floor Status:** <F1–F13 pass/fail>
- **Empathy Score κᵣ:** <0.0–1.0>
- **Entropy Delta ΔS:** <negative = good>
- **Ops Estimate:** <tokens> | <blast_radius>
- **Verdict:** <SEAL | SABAR | HOLD | VOID>
- **Sovereign Ack:** <yes | pending>
- **Commit Hash:** <hash-or-none>
development
Governed intelligence skill for AAA as the abstraction, attestation, and abduction control plane across arifOS, APEX, A-FORGE, GEOX, WEALTH, WELL, and the ariffazil profile repository. Use when the user asks to explain or design AAA, route agentic work, reduce chaos/entropy in an arifOS federation task, create AREP/task declarations, classify risk, plan multi-repo changes, review governance boundaries, or translate human intent into evidence-backed, authority-safe, recursively agentic workflows. Provides deterministic F1-F13 floor checking, bounded abduction, and FederationReceipt composition.
development
Check every skill’s “use when” and “do not use when” clauses for collisions, missing negatives, and vague verbs like “help,” “assist,” or “improve.” Load when linting, reviewing, or validating trigger boundaries.
development
Bootstrap, design, and package new skills. Load when capturing user intent for a new skill or drafting its initial instruction framework.
content-media
Diagnose which federation services are up, down, or drifting. Produce a prioritized remediation plan.