skill-system-gate

Experiment gate validation skill for GNN/FraudDetect workflows. Use when validating experiment artifacts against gate rules, checking registry reset safety, or reviewing registry queue health.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "skill-system-gate" with this command: npx skills add arthur0824hao/skills/arthur0824hao-skills-skill-system-gate

Skill System Gate

Enforce a fail-closed gate before experiment registration and provide read-only registry safety/status checks.

Decision Matrix

Task IntentOperationPrimary BackendUse When
Validate experiment implementation and logs against gate rulesvalidate-experimentpreprocess_lib.gate_engineBefore registering or rerunning an experiment
Check whether registry state is safe for rerun/resetverify-registrydb_registry.DBExperimentsDBBefore any manual reset/rerun action
View queue health and state countsstatusdb_registry.DBExperimentsDBNeed a quick dashboard of current experiment states

Core Patterns

Pattern 1: Validate experiment gate compliance

scripts/validate_exp.sh <exp_name> [phase_root]
  • Load gate_bank.json rules.
  • Run all rule classes (source_contains, source_not_contains, stderr_scan, file_exists, file_min_size).
  • Emit markdown verdict and JSON summary on the last line.

Pattern 2: Verify registry safety before reset decisions

scripts/check_registry.sh <exp_name> [phase_root]
  • Read registry entry for the experiment.
  • Block reset recommendation for RUNNING experiments.
  • Return status details and safe_to_reset decision JSON.

Pattern 3: Show current registry health dashboard

scripts/status.sh [phase_root]
  • Aggregate counts across active/completed sets.
  • Show running experiments and execution location.
  • Return compact JSON counters on the last line.

Guidelines

  • Always treat validation as fail-closed: any error-severity rule violation means gate failure.
  • Always run validate-experiment before registry-facing actions.
  • Never modify experiment source/config files during checks.
  • Never execute reset/rerun from this skill; only report recommendations.
  • Never override RUNNING experiments as safe to reset.
  • Keep all operations read-only with respect to registry and experiment artifacts.
{
  "schema_version": "2.0",
  "id": "skill-system-gate",
  "version": "1.0.0",
  "capabilities": ["experiment-gate", "registry-safety", "experiment-status"],
  "effects": ["fs.read", "db.read", "proc.exec"],
  "operations": {
    "validate-experiment": {
      "description": "Validate experiment source artifacts and logs against gate_bank rules and return a pass/fail verdict.",
      "input": {
        "exp_name": { "type": "string", "required": true, "description": "Experiment directory name under experiments/" },
        "phase_root": { "type": "string", "required": false, "description": "Phase directory path", "default": "/datas/store162/arthur0824hao/Study/GNN/FraudDetect/SubProject/Phase3" }
      },
      "output": {
        "description": "Gate validation markdown plus machine-readable verdict.",
        "fields": { "passed": "boolean", "errors": "number", "warnings": "number" }
      },
      "entrypoints": {
        "unix": ["bash", "scripts/validate_exp.sh", "{exp_name}", "{phase_root}"]
      }
    },
    "verify-registry": {
      "description": "Check registry state safety and recommend whether reset/rerun is safe without mutating state.",
      "input": {
        "exp_name": { "type": "string", "required": true, "description": "Experiment name in registry" },
        "phase_root": { "type": "string", "required": false, "description": "Phase directory path", "default": "/datas/store162/arthur0824hao/Study/GNN/FraudDetect/SubProject/Phase3" }
      },
      "output": {
        "description": "Registry safety markdown plus recommendation payload.",
        "fields": { "found": "boolean", "status": "string", "safe_to_reset": "boolean" }
      },
      "entrypoints": {
        "unix": ["bash", "scripts/check_registry.sh", "{exp_name}", "{phase_root}"]
      }
    },
    "status": {
      "description": "Show current registry dashboard with counts by status and running experiment details.",
      "input": {
        "phase_root": { "type": "string", "required": false, "description": "Phase directory path", "default": "/datas/store162/arthur0824hao/Study/GNN/FraudDetect/SubProject/Phase3" }
      },
      "output": {
        "description": "Registry status dashboard and aggregate counters.",
        "fields": { "running": "number", "needs_rerun": "number", "completed": "number", "total": "number" }
      },
      "entrypoints": {
        "unix": ["bash", "scripts/status.sh", "{phase_root}"]
      }
    }
  },
  "stdout_contract": {
    "last_line_json": true
  }
}

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Automation

skill-system-workflow

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

agent-memory-systems-postgres

No summary provided by upstream source.

Repository SourceNeeds Review
General

skill-system-memory

No summary provided by upstream source.

Repository SourceNeeds Review
General

skill-system-router

No summary provided by upstream source.

Repository SourceNeeds Review