Skip to content

aiskillstore/marketplace / skills/abdelstark/testing

testing

Verified

Comprehensive testing strategies for Guts including unit tests, integration tests, property-based testing, and fuzzing

FileKindSize
SKILL.mdskill md4.6 KB
skill-report.jsonconfig25.4 KB

skill-report.json

View on GitHub
{
  "schema_version": "2.0",
  "meta": {
    "generated_at": "2026-07-07T18:09:52.214Z",
    "slug": "abdelstark-testing",
    "source_url": "https://github.com/AbdelStark/guts/tree/main/.claude/skills/testing",
    "source_ref": "main",
    "model": "codex",
    "analysis_version": "3.0.0",
    "source_type": "community",
    "content_hash": "a771f24aca92ca274bd728b16f75700f89e12fa1a5f7eecda3e38ec18b19133d",
    "tree_hash": "90afcc9c96456979e7628b480ea958eae7abf1a264507900be676f2ae03fe786",
    "provenance": {
      "model_effective": "codex",
      "fallback_chain": [
        {
          "agent": "codex",
          "outcome": "success"
        }
      ],
      "analysis_version": "3.0.0"
    }
  },
  "skill": {
    "name": "testing",
    "description": "Guides Rust testing for the Guts distributed system, including unit, async, integration, property-based, fuzzing, CI, and mocking patterns.",
    "summary": "Plan and implement reliable Rust tests for Guts services and protocols.",
    "icon": "📦",
    "version": "1.0.1",
    "author": "AbdelStark",
    "license": "MIT",
    "tags": [
      "rust",
      "testing",
      "integration-tests",
      "property-based-testing",
      "fuzzing"
    ],
    "supported_tools": [
      "claude",
      "codex",
      "claude-code"
    ],
    "risk_factors": [
      "external_commands"
    ],
    "category": "coding"
  },
  "security_audit": {
    "risk_level": "safe",
    "is_blocked": false,
    "safe_to_publish": true,
    "analysis_status": "ok",
    "summary": "Static findings were false positives caused by Markdown fences, inline code formatting, and ordinary Rust testing examples. The only command examples are transparent Cargo test, coverage, benchmark, and fuzzing commands intended for user-directed development workflows. No prompt injection, secret access, network exfiltration, obfuscation, or malicious intent was found in SKILL.md.",
    "remediation": [],
    "risk_factor_evidence": [
      {
        "factor": "external_commands",
        "evidence": [
          {
            "file": "SKILL.md",
            "line_start": 12,
            "line_end": 18
          },
          {
            "file": "SKILL.md",
            "line_start": 18,
            "line_end": 24
          },
          {
            "file": "SKILL.md",
            "line_start": 24,
            "line_end": 47
          },
          {
            "file": "SKILL.md",
            "line_start": 47,
            "line_end": 51
          },
          {
            "file": "SKILL.md",
            "line_start": 51,
            "line_end": 64
          },
          {
            "file": "SKILL.md",
            "line_start": 64,
            "line_end": 70
          },
          {
            "file": "SKILL.md",
            "line_start": 70,
            "line_end": 99
          },
          {
            "file": "SKILL.md",
            "line_start": 99,
            "line_end": 103
          },
          {
            "file": "SKILL.md",
            "line_start": 103,
            "line_end": 127
          },
          {
            "file": "SKILL.md",
            "line_start": 127,
            "line_end": 131
          },
          {
            "file": "SKILL.md",
            "line_start": 131,
            "line_end": 133
          },
          {
            "file": "SKILL.md",
            "line_start": 133,
            "line_end": 150
          },
          {
            "file": "SKILL.md",
            "line_start": 150,
            "line_end": 154
          },
          {
            "file": "SKILL.md",
            "line_start": 154,
            "line_end": 156
          },
          {
            "file": "SKILL.md",
            "line_start": 156,
            "line_end": 166
          },
          {
            "file": "SKILL.md",
            "line_start": 166,
            "line_end": 170
          },
          {
            "file": "SKILL.md",
            "line_start": 170,
            "line_end": 188
          },
          {
            "file": "SKILL.md",
            "line_start": 188,
            "line_end": 192
          },
          {
            "file": "SKILL.md",
            "line_start": 192,
            "line_end": 204
          },
          {
            "file": "SKILL.md",
            "line_start": 204,
            "line_end": 208
          },
          {
            "file": "SKILL.md",
            "line_start": 208,
            "line_end": 228
          }
        ]
      }
    ],
    "static_findings": [
      {
        "id": "external_commands:SKILL.md:12:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "SKILL.md",
        "line_start": 12,
        "line_end": 18,
        "snippet": "```"
      },
      {
        "id": "external_commands:SKILL.md:18:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "SKILL.md",
        "line_start": 18,
        "line_end": 24,
        "snippet": "```"
      },
      {
        "id": "external_commands:SKILL.md:24:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "SKILL.md",
        "line_start": 24,
        "line_end": 47,
        "snippet": "```rust"
      },
      {
        "id": "external_commands:SKILL.md:47:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "SKILL.md",
        "line_start": 47,
        "line_end": 51,
        "snippet": "```"
      },
      {
        "id": "external_commands:SKILL.md:51:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "SKILL.md",
        "line_start": 51,
        "line_end": 64,
        "snippet": "```rust"
      },
      {
        "id": "external_commands:SKILL.md:64:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "SKILL.md",
        "line_start": 64,
        "line_end": 70,
        "snippet": "```"
      },
      {
        "id": "external_commands:SKILL.md:70:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "SKILL.md",
        "line_start": 70,
        "line_end": 99,
        "snippet": "```rust"
      },
      {
        "id": "external_commands:SKILL.md:99:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "SKILL.md",
        "line_start": 99,
        "line_end": 103,
        "snippet": "```"
      },
      {
        "id": "external_commands:SKILL.md:103:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "SKILL.md",
        "line_start": 103,
        "line_end": 127,
        "snippet": "```rust"
      },
      {
        "id": "external_commands:SKILL.md:127:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "SKILL.md",
        "line_start": 127,
        "line_end": 131,
        "snippet": "```"
      },
      {
        "id": "external_commands:SKILL.md:131:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "SKILL.md",
        "line_start": 131,
        "line_end": 133,
        "snippet": "Using `proptest`:"
      },
      {
        "id": "external_commands:SKILL.md:133:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "SKILL.md",
        "line_start": 133,
        "line_end": 150,
        "snippet": "```rust"
      },
      {
        "id": "external_commands:SKILL.md:150:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "SKILL.md",
        "line_start": 150,
        "line_end": 154,
        "snippet": "```"
      },
      {
        "id": "external_commands:SKILL.md:154:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "SKILL.md",
        "line_start": 154,
        "line_end": 156,
        "snippet": "Using `cargo-fuzz`:"
      },
      {
        "id": "external_commands:SKILL.md:156:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "SKILL.md",
        "line_start": 156,
        "line_end": 166,
        "snippet": "```rust"
      },
      {
        "id": "external_commands:SKILL.md:166:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "SKILL.md",
        "line_start": 166,
        "line_end": 170,
        "snippet": "```"
      },
      {
        "id": "external_commands:SKILL.md:170:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "SKILL.md",
        "line_start": 170,
        "line_end": 188,
        "snippet": "```bash"
      },
      {
        "id": "external_commands:SKILL.md:188:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "SKILL.md",
        "line_start": 188,
        "line_end": 192,
        "snippet": "```"
      },
      {
        "id": "external_commands:SKILL.md:192:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "SKILL.md",
        "line_start": 192,
        "line_end": 204,
        "snippet": "```yaml"
      },
      {
        "id": "external_commands:SKILL.md:204:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "SKILL.md",
        "line_start": 204,
        "line_end": 208,
        "snippet": "```"
      },
      {
        "id": "external_commands:SKILL.md:208:ruby-shell-backtick-execution",
        "category": "external_commands",
        "severity": "medium",
        "pattern": "Ruby/shell backtick execution",
        "file": "SKILL.md",
        "line_start": 208,
        "line_end": 228,
        "snippet": "```rust"
      },
      {
        "id": "blocker:SKILL.md:10:system-reconnaissance",
        "category": "blocker",
        "severity": "low",
        "pattern": "System reconnaissance",
        "file": "SKILL.md",
        "line_start": 10,
        "line_end": 12,
        "snippet": "## Testing Pyramid"
      },
      {
        "id": "blocker:SKILL.md:93:system-reconnaissance",
        "category": "blocker",
        "severity": "low",
        "pattern": "System reconnaissance",
        "file": "SKILL.md",
        "line_start": 93,
        "line_end": 93,
        "snippet": "let repo_id = node.create_repository(\"test\").await.unwrap();"
      },
      {
        "id": "blocker:SKILL.md:117:system-reconnaissance",
        "category": "blocker",
        "severity": "low",
        "pattern": "System reconnaissance",
        "file": "SKILL.md",
        "line_start": 117,
        "line_end": 117,
        "snippet": "let repo_id = nodes[0].create_repository(\"sync-test\").await.unwrap();"
      }
    ],
    "finding_verdicts": [
      {
        "id": "external_commands:SKILL.md:12:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.94,
        "reason": "This is an ASCII testing pyramid inside a Markdown code fence, not Ruby backtick execution. It does not invoke a shell or process user input."
      },
      {
        "id": "external_commands:SKILL.md:18:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.94,
        "reason": "This closing Markdown fence is documentation syntax, not executable shell syntax. No command is being constructed or executed here."
      },
      {
        "id": "external_commands:SKILL.md:24:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.94,
        "reason": "This opens a Rust example block for unit tests. The code is illustrative test code and contains no shell execution primitive."
      },
      {
        "id": "external_commands:SKILL.md:47:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.94,
        "reason": "This closing Markdown fence only terminates the Rust example. It is not a backtick expression evaluated by Ruby or a shell."
      },
      {
        "id": "external_commands:SKILL.md:51:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.94,
        "reason": "This opens a Rust async test example. The snippet demonstrates tokio timeout usage and does not execute external commands."
      },
      {
        "id": "external_commands:SKILL.md:64:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.94,
        "reason": "This closing Markdown fence is inert documentation syntax. It does not create an external command execution path."
      },
      {
        "id": "external_commands:SKILL.md:70:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.94,
        "reason": "This opens a Rust integration test fixture example. The code creates temporary test nodes and does not invoke the operating system shell."
      },
      {
        "id": "external_commands:SKILL.md:99:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.94,
        "reason": "This closing Markdown fence is not executable code. It only ends the integration test example block."
      },
      {
        "id": "external_commands:SKILL.md:103:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.94,
        "reason": "This opens a Rust multi-node test example. The snippet models in-process test nodes and contains no shell command execution."
      },
      {
        "id": "external_commands:SKILL.md:127:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.94,
        "reason": "This closing Markdown fence is documentation markup only. It is not Ruby or shell command substitution."
      },
      {
        "id": "external_commands:SKILL.md:131:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.92,
        "reason": "The inline backticks around proptest mark a crate name in prose. They do not execute code or pass data to a command interpreter."
      },
      {
        "id": "external_commands:SKILL.md:133:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.94,
        "reason": "This opens a Rust proptest example block. The snippet defines property tests and does not run external commands from dynamic input."
      },
      {
        "id": "external_commands:SKILL.md:150:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.94,
        "reason": "This closing Markdown fence is inert markup. It has no command execution behavior."
      },
      {
        "id": "external_commands:SKILL.md:154:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.92,
        "reason": "The inline backticks around cargo-fuzz mark a tool name in prose. This is documentation, not an instruction that performs immediate execution."
      },
      {
        "id": "external_commands:SKILL.md:156:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.94,
        "reason": "This opens a Rust fuzz target example. It shows libFuzzer harness code and does not contain shell backtick execution."
      },
      {
        "id": "external_commands:SKILL.md:166:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.94,
        "reason": "This closing Markdown fence is documentation syntax only. No shell or Ruby execution occurs at this location."
      },
      {
        "id": "external_commands:SKILL.md:170:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.82,
        "reason": "This opens a bash examples block containing explicit Cargo test, coverage, benchmark, and fuzzing commands. They are transparent developer commands with no obfuscation, download, or user-controlled command construction."
      },
      {
        "id": "external_commands:SKILL.md:188:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.94,
        "reason": "This closing Markdown fence only ends the bash command examples. It does not itself execute commands."
      },
      {
        "id": "external_commands:SKILL.md:192:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.94,
        "reason": "This opens a YAML CI example. The workflow runs Cargo tests in CI and does not hide command construction or exfiltration behavior."
      },
      {
        "id": "external_commands:SKILL.md:204:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.94,
        "reason": "This closing Markdown fence is inert Markdown markup. It is not executable shell syntax."
      },
      {
        "id": "external_commands:SKILL.md:208:ruby-shell-backtick-execution",
        "verdict": "false_positive",
        "confidence": 0.94,
        "reason": "This opens a Rust mocking example. The code defines a mocked trait for tests and does not invoke external processes."
      },
      {
        "id": "blocker:SKILL.md:10:system-reconnaissance",
        "verdict": "false_positive",
        "confidence": 0.96,
        "reason": "The line is a section heading for a testing pyramid. It does not collect host, network, user, or environment information."
      },
      {
        "id": "blocker:SKILL.md:93:system-reconnaissance",
        "verdict": "false_positive",
        "confidence": 0.9,
        "reason": "The snippet creates a repository named test inside an integration test fixture. It is application test setup, not system reconnaissance."
      },
      {
        "id": "blocker:SKILL.md:117:system-reconnaissance",
        "verdict": "false_positive",
        "confidence": 0.9,
        "reason": "The snippet creates a repository named sync-test for a multi-node synchronization test. It does not inspect the host system or enumerate sensitive resources."
      }
    ],
    "semantic_findings": [],
    "critical_findings": [],
    "high_findings": [],
    "medium_findings": [],
    "low_findings": [],
    "dangerous_patterns": [],
    "files_scanned": 1,
    "total_lines": 229,
    "audit_model": "codex",
    "audited_at": "2026-07-07T18:09:52.214Z",
    "agent_auto_install_policy": "allowed",
    "manual_install_policy": "allowed"
  },
  "content": {
    "user_title": "Build Reliable Rust Tests for Guts",
    "value_statement": "Distributed systems fail in ways that simple unit tests can miss. This skill helps Claude, Codex, and Claude Code plan unit, integration, property, fuzz, CI, and mock-based tests for Guts.",
    "seo_keywords": [
      "Claude",
      "Codex",
      "Claude Code",
      "Rust testing",
      "Guts distributed system",
      "unit testing",
      "integration testing",
      "property-based testing",
      "cargo fuzz",
      "CI test matrix"
    ],
    "actual_capabilities": [
      "Explains a testing pyramid for high-reliability distributed systems.",
      "Shows Rust unit test structure with grouped test modules and assertions.",
      "Demonstrates async tests with tokio and bounded timeouts.",
      "Describes integration fixtures for temporary nodes and repository workflows.",
      "Covers proptest property tests, cargo-fuzz targets, CI matrices, and mockall-based mocks."
    ],
    "limitations": [
      "Focused on Rust and the Guts project structure, not general testing for every language.",
      "Provides examples and strategy, but does not generate a full test suite by itself.",
      "Command examples assume Cargo tooling and relevant test crates are already installed.",
      "Does not validate project-specific APIs without access to the repository source."
    ],
    "use_cases": [
      {
        "title": "Add Coverage for Core Rust Modules",
        "description": "Use the unit test patterns to organize module tests and verify expected errors for repository logic.",
        "target_user": "Rust backend developer"
      },
      {
        "title": "Validate Distributed Synchronization",
        "description": "Use temporary multi-node fixtures to test repository creation, cloning, connection, and synchronization flows.",
        "target_user": "Distributed systems engineer"
      },
      {
        "title": "Harden Protocol Parsing",
        "description": "Use property tests and fuzz targets to check round trips, signatures, and parser resilience against arbitrary input.",
        "target_user": "Security-focused maintainer"
      }
    ],
    "prompt_templates": [
      {
        "title": "Create a Unit Test Plan",
        "scenario": "Beginner request for focused module coverage.",
        "prompt": "Review this Guts module and propose unit tests for success cases, error cases, and boundary values. Keep the plan grouped by function."
      },
      {
        "title": "Write Async Test Cases",
        "scenario": "Intermediate request for async Rust behavior.",
        "prompt": "Add tokio-based async tests for this service. Include timeouts, clear assertions, and failure cases for long-running operations."
      },
      {
        "title": "Design Integration Fixtures",
        "scenario": "Advanced request for multi-component behavior.",
        "prompt": "Design integration test fixtures for temporary Guts nodes. Cover repository creation, peer connection, clone behavior, and cleanup requirements."
      },
      {
        "title": "Add Property and Fuzz Tests",
        "scenario": "Expert request for robustness testing.",
        "prompt": "Identify invariants in this protocol code and propose proptest cases plus a cargo-fuzz target. Explain what failures each test should catch."
      }
    ],
    "output_examples": [
      {
        "input": "Ask for a test strategy for repository creation and cloning.",
        "output": "A layered plan with unit cases for validation, integration cases for clone workflows, and multi-node checks for synchronization."
      },
      {
        "input": "Ask how to test message parsing robustness.",
        "output": "A property-based test outline for valid round trips and a fuzzing target that verifies arbitrary bytes never crash the parser."
      },
      {
        "input": "Ask how to prepare CI for Guts tests.",
        "output": "A CI matrix recommendation that runs workspace tests across Rust toolchains and operating systems, with optional coverage and fuzz jobs."
      }
    ],
    "best_practices": [
      "Start with deterministic unit tests before adding slower integration and fuzz tests.",
      "Use temporary directories and isolated fixtures for tests that create repositories or nodes.",
      "Run command examples only in trusted project workspaces after reviewing local build scripts."
    ],
    "anti_patterns": [
      "Do not rely only on end-to-end tests for distributed system behavior.",
      "Do not leave async tests without timeouts or clear failure assertions.",
      "Do not run fuzzing or benchmark commands automatically in untrusted repositories."
    ],
    "faq": [
      {
        "question": "What project is this skill designed for?",
        "answer": "It is designed for Guts, a Rust distributed system, and its repository, node, protocol, and storage testing needs."
      },
      {
        "question": "Can it help with ordinary Rust unit tests?",
        "answer": "Yes. It includes module organization, assertions, expected error handling, and async test patterns."
      },
      {
        "question": "Does it include integration testing guidance?",
        "answer": "Yes. It describes temporary node fixtures and multi-node repository synchronization tests."
      },
      {
        "question": "Does it support property-based testing?",
        "answer": "Yes. It uses proptest examples for repository names, signature verification, and invariant checks."
      },
      {
        "question": "Does it run commands automatically?",
        "answer": "No. It documents Cargo commands, but users should decide when and where to run them."
      },
      {
        "question": "Can Claude Code or Codex use this skill?",
        "answer": "Yes. The report lists support for Claude, Codex, and Claude Code."
      }
    ]
  },
  "file_structure": [
    {
      "name": "SKILL.md",
      "type": "file",
      "path": "SKILL.md",
      "lines": 229
    }
  ]
}
finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the workStars: 322kUpdated Claude CodeCodexVerifiedInstall
systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixesStars: 322kUpdated Claude CodeCodexVerifiedInstall
test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation codeStars: 322kUpdated Claude CodeCodexVerifiedInstall
skill-creatoranthropics/skillsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.Stars: 198kUpdated Claude CodeCodexVerifiedInstall