# Validate Code Functionality With Runtime Audits

Code can look complete while failing at runtime. This skill guides sandbox setup, test execution, debugging, regression checks, and reporting.

## Install

```bash
npx skillstore add dnyoussef/when-validating-code-works-use-functionality-audit
```

## Metadata

- Status: approved
- Slug: dnyoussef-when-validating-code-works-use-functionality-audit
- Skillstore revision: r1
- Version status: missing
- Tree hash: eb2a2af44f0dd23ca599fdd101011a4b11757c637deac835581c5a31d8c48d67
- Author: DNYoussef
- GitHub username: DNYoussef
- License: MIT
- Repository: https://github.com/DNYoussef/ai-chrome-extension/tree/main/.claude/skills/testing-quality/when-validating-code-works-use-functionality-audit
- Ref: 3e4b6c31a74a3bd1a291c98cf585d720cb9fbc88
- Supported tools: Claude, Codex, Claude Code
- Audit status: complete
- Agent install advisory: confirmation\_required
- Manual install advisory: allowed
- Artifact signature: available
- Audit attestation: unavailable
- Human verification: not\_verified
- Risk factors: external\_commands, filesystem, network, env\_access
- Quality score: 38
- Quality tier: warning
- Public page: https://skillstore.pages.dev/skills/dnyoussef-when-validating-code-works-use-functionality-audit
- Manifest: https://skillstore.pages.dev/api/skills/dnyoussef-when-validating-code-works-use-functionality-audit/manifest

## Capabilities

- Guides creation of isolated temporary test workspaces.
- Runs unit, integration, and edge-case test scenarios.
- Captures test logs, coverage metrics, and exit codes.
- Categorizes failures into syntax, runtime, logic, dependency, and integration issues.
- Reruns tests after fixes to check regressions and readiness.
- Produces Markdown reports and metrics artifacts.

## Use Cases

- Validate AI-Generated Features: Run generated code with realistic inputs before review or merge.
- Check Release Readiness: Confirm tests, coverage, and regressions before a production deployment.
- Debug Reported Failures: Categorize failing tests and guide fixes with a repeatable audit process.

## Prompt Templates

### Run a Basic Audit

```
Use this skill to validate the changed module. Create a temporary test workspace, run the existing tests, and report failures with next steps.
```

### Audit a New Feature

```
Use this skill to test the new feature with realistic happy-path, edge-case, and error inputs. Capture logs, coverage, and regression results.
```

### Debug Failing Tests

```
Use this skill to categorize the failures by root cause, propose minimal fixes, apply them incrementally, and rerun the affected tests.
```

### Prepare Release Evidence

```
Use this skill to run a full functionality audit, verify readiness criteria, identify remaining risks, and produce a concise release report.
```

## Limitations

- Requires local test tooling and dependencies to be available or installable.
- Can execute project code and package scripts, so untrusted projects need stronger isolation.
- Examples focus mainly on Node.js, Jest, and pytest workflows.
- Does not replace human review for security or product correctness.

## Best Practices

- Run audits in disposable workspaces with only the files needed for validation.
- Record commands, exit codes, logs, and coverage so results can be reproduced.
- Rerun previously passing tests after each fix to catch regressions early.

## Anti Patterns

- Running untrusted projects on the host without isolation or confirmation.
- Accepting generated tests that only assert placeholder success.
- Reporting readiness without rerunning tests after fixes.

## Security Audit

- Audited at: 2026-07-09T08:36:06.289\+00:00
- Summary: Most static findings are false positives from Markdown formatting, Graphviz labels, local test imports, and dummy environment examples. The confirmed risks are operational: the skill runs external commands, installs dependencies, mounts workspaces into Docker, deletes a fixed temporary directory, and stores audit artifacts in shared memory. No prompt injection attempt was found in the reviewed files.

## Stats

- Views: 200
- Downloads: 7
- Favorites: 0
- Popularity score: 0
