agentleFS
OdradekAIOdradekAI/bundles-forge/skills/testing/SKILL.md

testing

Skill229 starsChanged 7 months agoApache-2.0View on GitHub

Use when testing a bundle-plugin locally before release — generating dev-marketplace environments, verifying component discovery, running hook smoke tests, and validating cross-platform readiness

123 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use oss-pr, pr-automation and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • CES-LtdSkill

    oss-pr

    Use when creating a pull request, after committing changes, or when user invokes /oss-pr. Covers branch management, quality checks, commit, push, and PR creation.

    Also in 3 projects that use this

  • CES-LtdSkill

    pr-automation

    PR Automation Orchestrator: poll open PRs, check CI, run review, fix, and merge eligible PRs. Use when: (1) Invoked by daemon via scripts/pr-automation.sh, (2) User says "/pr-automation".

    Also in 3 projects that use this

  • ffsshhttiikkSkill

    cicd

    Continuous integration and delivery pipelines

    Also in 4 projects that use this

  • ffsshhttiikkSkill

    networking

    Practical application and coding skills for Networking

    Also in 3 projects that use this

  • JohnJBorenSkill

    ci-cd

    CI/CD pipeline design, GitHub Actions, testing automation, and deployment strategies

    Also in 9 projects that use this

  • Cogni-AI-OUSkill

    dotfiles

    Reference for repository dotfiles, including their purposes, standard configurations, and usage guidelines. You MUST load this skill when configuring, troubleshooting, or understanding repository dotfiles.

    Also in 3 projects that use this

  • +2 more from CES-Ltd
  • +1 more from ffsshhttiikk

The file

We split this skill into the rules it gives an agent

7 rules. 0 are common, 3 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 105 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Create ../dev-marketplace/ adjacent to the project directory

    line 40
  2. Distinctive:

    Verify hooks execute without errors by running them directly.

    line 95
  3. Very specific:

    If CLAUDE_PLUGIN_ROOT is set: valid JSON with hookSpecificOutput.additionalContext

    line 106
  4. Very specific:

    If the project defines PreToolUse or PostToolUse hooks in hooks.json, run each referenced script directly and verify:

    line 112
  5. Very specific:

    Verify hooks/openclaw-bootstrap/HOOK.md has valid YAML frontmatter with events declaration, and handler.js uses ESM export default.

    line 118
  6. Distinctive:

    Verify that all declared components can be found by the host platform.

    line 124
  7. Distinctive:

    If testing reveals critical issues, the release pipeline is blocked until they are resolved.

    line 213

“Common” is measured: kept by at least 6 in 10 of the 105 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Testing Bundle-Plugins

Overview

Dynamic verification of a bundle-plugin project: install it locally, confirm components are discoverable, validate hooks fire correctly, and run cross-platform smoke tests. Complements bundles-forge:auditing (static analysis) with runtime validation.

Core principle: Audit tells you if the structure is correct; testing tells you if it actually works.

Skill type: Flexible — adapt the test scope based on target platforms and project maturity.

Announce at start: "I'm using the testing skill to verify this plugin works correctly."

Step 1: Resolve Input & Detect Scope

Input Normalization

The target must be a local bundle-plugin project (has package.json + skills/). Remote URLs and archives are not supported — testing requires a local working directory.

Scope Detection

TargetMode
Project root with multiple platformsFull testing — all 5 test phases
Project root with single platformPlatform testing — phases 1-4 for the target platform
Single skill directorySkill-only testing — phase 3 (component discovery) only

Phase 1: Local Test Environment

Generate a temporary dev-marketplace for local installation testing.

For Claude Code

  1. Create ../dev-marketplace/ adjacent to the project directory
  2. Generate .claude-plugin/marketplace.json pointing to the project:
{
  "name": "<project-name>-dev",
  "owner": { "name": "dev" },
  "plugins": [
    {
      "name": "<project-name>",
      "source": "../<project-directory-name>"
    }
  ]
}
  1. Instruct the user:
Dev marketplace created at ../dev-marketplace/

To install locally:
  /plugin marketplace add ./dev-marketplace
  /plugin install <project-name>@<project-name>-dev

To reload after changes:
  /plugin marketplace update <project-name>-dev

To clean up when done:
  /plugin marketplace remove <project-name>-dev

For Cursor

Cursor plugins are installed from local paths directly:

To test locally in Cursor:
  1. Open Cursor Settings → Extensions → Install from Path
  2. Select the project root directory
  3. Reload Cursor to pick up changes

For Other Platforms

  • Codex: Symlink skills/ into ~/.agents/skills/ per INSTALL.md
  • OpenCode: Register the plugin path in .opencode/plugins/
  • Gemini CLI: Point the extension config to the local directory

See references/platform-test-guides.md for platform-specific setup instructions.


Phase 2: Hook Smoke Tests

Verify hooks execute without errors by running them directly.

SessionStart Hook

bash hooks/session-start

Expected: Exits 0, prints a one-line prompt containing the project name and available skills. No stderr output.

Verify output format:

  • If CLAUDE_PLUGIN_ROOT is set: valid JSON with hookSpecificOutput.additionalContext
  • If CURSOR_PLUGIN_ROOT is set: valid JSON with additional_context
  • Neither: plain text

Custom Hooks (if configured)

If the project defines PreToolUse or PostToolUse hooks in hooks.json, run each referenced script directly and verify:

  • PreToolUse scripts: exit 0 on a valid project, exit 2 to block writes on critical issues
  • PostToolUse scripts: always exit 0, warnings go to stderr

OpenClaw Hook-Pack (if present)

Verify hooks/openclaw-bootstrap/HOOK.md has valid YAML frontmatter with events declaration, and handler.js uses ESM export default.


Phase 3: Component Discovery

Verify that all declared components can be found by the host platform.

Skills

For each directory under skills/:

  • Contains SKILL.md
  • Frontmatter has name and description
  • name matches directory name
  • description starts with "Use when..."

Agents

For each .md file under agents/:

  • Has YAML frontmatter
  • Body has 5+ non-empty lines (self-contained protocol)

Platform Manifests

For each target platform:

  • Manifest file exists and is valid JSON
  • Paths in manifest resolve to existing files/directories
  • Version matches package.json version

Phase 4: Cross-Platform Readiness

Generate a platform-specific test checklist based on references/platform-test-guides.md and known limitations from bundles-forge:scaffolding — references/platform-adapters.md.

Known Limitations to Verify

PlatformLimitationTest
Claude CodePlugin caching breaks ../ pathsVerify no ../ in hook commands or manifest paths
CursorBootstrap lost after /clearVerify session-start runs independently of prior context
CodexNo hook bootstrapVerify AGENTS.md or INSTALL.md has manual setup instructions
OpenCodePlugin JS must use ESMVerify export default in .opencode/plugins/*.js
Gemini CLIExtension needs contextFileNameVerify gemini-extension.json has contextFileName field
OpenClawHook-pack wiring uncertainDocument as known risk in test report

Phase 5: Test Report

Generate a test report summarizing all findings.

Report Structure

# Test Report: <project-name>

**Date:** YYYY-MM-DD
**Scope:** [Full / Platform / Skill-only]
**Platforms tested:** [list]

## Results

| Phase | Status | Details |
|-------|--------|---------|
| 1. Local Environment | PASS/FAIL/SKIP | ... |
| 2. Hook Smoke Tests | PASS/FAIL/SKIP | ... |
| 3. Component Discovery | PASS/FAIL/SKIP | N skills, K agents |
| 4. Cross-Platform | PASS/FAIL/SKIP | ... |

## Issues Found

### Critical
- (blocks release)

### Warnings
- (should fix before release)

## Recommendations

- ...

Report location: .bundles-forge/audits/<timestamp>-test-report.md


Integration with Releasing

In the releasing pipeline, testing runs after auditing and before version bump:

audit → test → version bump → publish

If testing reveals critical issues, the release pipeline is blocked until they are resolved.


Common Mistakes

MistakeFix
Skipping local install testAlways test with a real dev-marketplace — file discovery differs from file existence
Testing only on one platformRun cross-platform checklist for every target platform
Ignoring hook exit codesHooks must exit 0 to avoid blocking the host; test all code paths
Not cleaning up dev-marketplaceAlways remove dev-marketplace after testing
Testing after version bumpTest before bumping — avoid releasing a broken version

Inputs

  • project-directory (required) — bundle-plugin project root

Outputs

  • test-report — comprehensive test results written to .bundles-forge/audits/
  • dev-marketplace (temporary) — local marketplace directory for installation testing

Integration

Called by:

  • bundles-forge:releasing — pre-release dynamic verification (after audit, before version bump)
  • User directly — standalone local testing during development

Calls:

  • (none — testing is a pure executor, does not dispatch other skills)

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.