Skip to content

gaia-research/gaia-skill-tree / .agents/skills/gaia-curate

gaia-curate

Verified

Discovery-only Gaia curation for one manually selected source page. Fetches and normalizes up to five real SKILL.md candidates, deduplicates and maps them for human L4 review, then stops without evidence scoring or registry mutation.

schemas/discovery-packet-v2.schema.json

View on GitHub
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Gaia discovery packet v2",
  "type": "object",
  "required": ["contractVersion", "candidateId", "lifecycle", "source", "normalized", "exactDedupe", "mappingOptions", "decision", "flags"],
  "properties": {
    "contractVersion": {"const": "discovery-packet-v2"},
    "candidateId": {"type": "string", "minLength": 1},
    "lifecycle": {
      "type": "array",
      "oneOf": [
        {"const": ["discovered", "deferred"]},
        {"const": ["discovered", "rejected"]},
        {"const": ["discovered", "fetched", "deferred"]},
        {"const": ["discovered", "fetched", "rejected"]},
        {"const": ["discovered", "fetched", "parsed", "deferred"]},
        {"const": ["discovered", "fetched", "parsed", "rejected"]},
        {"const": ["discovered", "fetched", "parsed", "normalized", "deferred"]},
        {"const": ["discovered", "fetched", "parsed", "normalized", "rejected"]},
        {"const": ["discovered", "fetched", "parsed", "normalized", "deduped", "deferred"]},
        {"const": ["discovered", "fetched", "parsed", "normalized", "deduped", "rejected"]},
        {"const": ["discovered", "fetched", "parsed", "normalized", "deduped", "mapped", "deferred"]},
        {"const": ["discovered", "fetched", "parsed", "normalized", "deduped", "mapped", "rejected"]},
        {"const": ["discovered", "fetched", "parsed", "normalized", "deduped", "mapped", "review-ready"]}
      ]
    },
    "source": {
      "type": "object",
      "required": ["canonicalUrl", "sourceLane"],
      "properties": {
        "canonicalUrl": {"type": "string", "format": "uri"},
        "hostRepository": {"type": "string", "format": "uri"},
        "sourceLane": {"enum": ["marketplace", "source-repository", "github-topic"]},
        "fetchedAt": {"type": "string", "minLength": 1},
        "contentSha256": {"type": "string", "pattern": "^[a-f0-9]{64}$"},
        "frontmatter": {
          "type": "object",
          "required": ["name", "description"],
          "properties": {
            "name": {"type": "string", "minLength": 1},
            "description": {"type": "string", "minLength": 1}
          }
        }
      }
    },
    "normalized": {
      "type": "object",
      "properties": {
        "name": {"type": "string", "minLength": 1},
        "description": {"type": "string", "minLength": 1}
      }
    },
    "exactDedupe": {
      "type": "object",
      "properties": {
        "matched": {"type": "boolean"},
        "matchedCandidateId": {"type": ["string", "null"]},
        "matchedCanonicalUrl": {"type": ["string", "null"], "format": "uri"},
        "matchedContentSha256": {"type": ["string", "null"], "pattern": "^[a-f0-9]{64}$"}
      }
    },
    "mappingOptions": {
      "type": "array",
      "maxItems": 3,
      "items": {
        "type": "object",
        "required": ["genericId", "rationale", "similarity", "matchTier"],
        "properties": {
          "genericId": {"type": "string", "minLength": 1},
          "rationale": {"type": "string", "minLength": 1},
          "similarity": {"type": "number", "minimum": 0, "maximum": 1},
          "matchTier": {"enum": ["strong", "weak"]}
        }
      }
    },
    "suite": {
      "type": "object",
      "required": ["role", "suiteId"],
      "properties": {
        "role": {"enum": ["component", "capstone"]},
        "suiteId": {"type": "string", "minLength": 1},
        "componentCandidateIds": {
          "type": "array",
          "items": {"type": "string", "minLength": 1}
        }
      }
    },
    "genericSnapshot": {
      "type": "object",
      "required": ["capturedAt", "command", "generics", "contentSha256", "mappingOptionsSha256"],
      "properties": {
        "capturedAt": {"type": "string", "minLength": 1},
        "command": {"const": "gaia dev list --generic --json"},
        "generics": {
          "type": "array",
          "items": {
            "type": "object",
            "required": ["id", "kind"],
            "properties": {
              "id": {"type": "string", "minLength": 1},
              "kind": {"const": "generic"}
            }
          }
        },
        "contentSha256": {"type": "string", "pattern": "^[a-f0-9]{64}$"},
        "mappingOptionsSha256": {"type": "string", "pattern": "^[a-f0-9]{64}$"}
      }
    },
    "retrieval": {
      "type": "object",
      "description": "Provenance of embedding and retrieval configuration used during prefill.",
      "properties": {
        "model": {"type": "string"},
        "revision": {"type": ["string", "null"]},
        "fingerprint": {"type": ["string", "null"]},
        "thresholds": {"type": "object"},
        "config": {"type": "object"}
      }
    },
    "l4Resolution": {
      "type": "object",
      "description": "Explicit post-L4 handoff. Optional during discovery; required by intakeAdapter.py before an intake can be produced.",
      "required": ["status", "generic", "named", "skillFileUrl"],
      "additionalProperties": false,
      "properties": {
        "status": {"const": "approved"},
        "generic": {
          "type": "object",
          "required": ["id", "name", "description", "type", "prerequisites"],
          "additionalProperties": false,
          "properties": {
            "id": {"type": "string", "pattern": "^[a-z][a-z0-9]*(-[a-z0-9]+)*$"},
            "name": {"type": "string", "minLength": 1},
            "description": {"type": "string", "minLength": 10},
            "type": {"enum": ["basic", "fusion"]},
            "prerequisites": {"type": "array", "items": {"type": "string", "pattern": "^[a-z][a-z0-9]*(-[a-z0-9]+)*$"}}
          },
          "allOf": [
            {"if": {"properties": {"type": {"const": "basic"}}}, "then": {"properties": {"prerequisites": {"maxItems": 0}}}},
            {"if": {"properties": {"type": {"const": "fusion"}}}, "then": {"properties": {"prerequisites": {"minItems": 1}}}}
          ]
        },
        "named": {
          "type": "object",
          "required": ["contributor", "skillName"],
          "additionalProperties": false,
          "properties": {
            "contributor": {"type": "string", "minLength": 1},
            "skillName": {"type": "string", "pattern": "^[a-z][a-z0-9]*(-[a-z0-9]+)*$"}
          }
        },
        "skillFileUrl": {
          "type": "string",
          "pattern": "^https://(www\\.)?github\\.com/[^/]+/[^/]+/blob/[^/]+/.*/?SKILL\\.md$",
          "description": "Exact upstream SKILL.md blob URL; never inferred from source.canonicalUrl."
        },
        "humanReview": {
          "type": "object",
          "description": "Attestation of human review and assessment verification recorded at ratification.",
          "required": [
            "reviewedBy",
            "approvalRef",
            "rationale",
            "reviewedAt",
            "assessmentPath",
            "assessmentReceiptDigest"
          ],
          "additionalProperties": false,
          "properties": {
            "reviewedBy": {"type": "string", "minLength": 1},
            "approvalRef": {"type": "string", "minLength": 1},
            "rationale": {"type": "string", "minLength": 1},
            "reviewedAt": {"type": "string", "minLength": 1},
            "assessmentPath": {"type": "string", "minLength": 1},
            "assessmentReceiptDigest": {"type": "string", "pattern": "^[a-f0-9]{64}$"},
            "operatorOverride": {"type": "boolean"},
            "humanOverride": {"type": "boolean"},
            "priorProposal": {"type": ["object", "null"]},
            "attestation": {"type": "string"}
          }
        }
      }
    },
    "decision": {
      "type": "object",
      "required": ["value", "reasonCode"],
      "properties": {
        "value": {"enum": ["MAP", "NEW_GENERIC", "DUPLICATE", "NOT_A_SKILL", "DEFER"]},
        "reasonCode": {"type": "string", "minLength": 1},
        "genericId": {"type": "string", "minLength": 1},
        "proposal": {
          "type": "object",
          "required": ["name", "description", "type"],
          "properties": {
            "name": {"type": "string", "minLength": 1},
            "description": {"type": "string", "minLength": 1},
            "type": {"enum": ["basic", "fusion"]},
            "prerequisites": {
              "type": "array",
              "items": {"type": "string", "minLength": 1}
            }
          },
          "allOf": [
            {
              "if": {"properties": {"type": {"const": "fusion"}}},
              "then": {
                "required": ["prerequisites"],
                "properties": {"prerequisites": {"minItems": 1}}
              }
            }
          ]
        }
      }
    },
    "flags": {"type": "array"}
  },
  "allOf": [
    {
      "if": {"properties": {"lifecycle": {"contains": {"const": "review-ready"}}}},
      "then": {
        "properties": {
          "lifecycle": {"const": ["discovered", "fetched", "parsed", "normalized", "deduped", "mapped", "review-ready"]},
          "decision": {"properties": {"value": {"enum": ["MAP", "NEW_GENERIC"]}}}
        }
      }
    },
    {
      "if": {"properties": {"lifecycle": {"contains": {"const": "deferred"}}}},
      "then": {"properties": {"decision": {"properties": {"value": {"const": "DEFER"}}}}}
    },
    {
      "if": {"properties": {"lifecycle": {"contains": {"const": "rejected"}}}},
      "then": {"properties": {"decision": {"properties": {"value": {"enum": ["DUPLICATE", "NOT_A_SKILL"]}}}}}
    },
    {
      "if": {"properties": {"lifecycle": {"contains": {"const": "normalized"}}}},
      "then": {"properties": {"normalized": {"required": ["name", "description"]}}}
    },
    {
      "if": {"properties": {"lifecycle": {"contains": {"const": "fetched"}}}},
      "then": {"properties": {"source": {"required": ["hostRepository", "fetchedAt", "contentSha256"]}}}
    },
    {
      "if": {"properties": {"lifecycle": {"contains": {"const": "parsed"}}}},
      "then": {"properties": {"source": {"required": ["frontmatter"]}}}
    },
    {
      "if": {"properties": {"lifecycle": {"contains": {"const": "mapped"}}}},
      "then": {"required": ["genericSnapshot"]}
    },
    {
      "if": {"properties": {"decision": {"properties": {"value": {"const": "DUPLICATE"}}}}},
      "then": {
        "properties": {
          "lifecycle": {"contains": {"const": "deduped"}},
          "exactDedupe": {
            "required": ["matched"],
            "properties": {"matched": {"const": true}},
            "anyOf": [
              {"required": ["matchedCanonicalUrl"], "properties": {"matchedCanonicalUrl": {"type": "string", "minLength": 1, "format": "uri"}}},
              {"required": ["matchedContentSha256"], "properties": {"matchedContentSha256": {"type": "string", "pattern": "^[a-f0-9]{64}$"}}}
            ]
          }
        }
      }
    },
    {
      "if": {"properties": {"decision": {"properties": {"value": {"const": "MAP"}}}}},
      "then": {"properties": {"decision": {"required": ["genericId"]}}},
      "else": {"properties": {"decision": {"not": {"required": ["genericId"]}}}}
    },
    {
      "if": {"properties": {"decision": {"properties": {"value": {"const": "NEW_GENERIC"}}}}},
      "then": {"properties": {"decision": {"required": ["proposal"]}}}
    }
  ]
}
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: 472kUpdated 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: 322kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 322kUpdated 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: 322kUpdated Claude CodeCodexVerifiedInstall