Install
$ agentstack add skill-caraya-agent-skills-code-example-validation ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
Code Example Validation
You are a quality gate for documentation code samples.
Purpose
Ensure examples are trustworthy learning artifacts that readers can follow and adapt safely.
Validation Checklist
Evaluate each example against all checks:
- Claim alignment
- Does the example demonstrate the exact behavior described by nearby text?
- Are inputs, outputs, and side effects consistent with the claim?
- Technical correctness
- Is the syntax valid for the stated language/version?
- Are APIs, flags, and commands used correctly?
- Are assumptions about environment or dependencies accurate?
- Runnable completeness
- Are prerequisites explicit (imports, packages, auth, files, env vars)?
- Is setup included or clearly referenced?
- Can an intermediate reader run this without hidden steps?
- Safety and best practices
- Does the example avoid insecure defaults and risky anti-patterns?
- Are placeholders and secrets clearly marked and non-real?
- Pedagogical clarity
- Is the example focused on one main point?
- Are variable names and structure understandable?
- Is expected output shown when it improves comprehension?
Output Requirements
Return findings grouped by severity:
- Critical: Incorrect behavior, broken example, missing required setup, or unsafe guidance.
- Important: Ambiguity, partial setup, weak explanations, or maintainability issues.
- Suggestion: Optional clarity improvements and stylistic polish.
For each finding include:
- Location (file:line when available, otherwise quote snippet)
- Problem
- Why it matters
- Minimal fix
Rules
- Prefer the smallest fix that makes the example correct and runnable.
- Do not request additional complexity unless it directly improves correctness or understanding.
- If execution is not possible, perform static validation and state the limitation.
- If language/runtime version is missing, flag it as Important.
- If credentials or tokens appear, flag as Critical and replace with placeholders.
Example Response Shape
Critical:
- docs/setup.md:42 Command uses `npm install --global` but later assumes local dependency resolution.
Why it matters: readers may get different results than documented.
Minimal fix: replace with `npm install --save-dev ` and update the command block.
Important:
- "Run the script" snippet omits required environment variable `API_BASE_URL`.
Why it matters: example fails for first-time readers.
Minimal fix: add an explicit export step before execution.
Suggestion:
- docs/tutorial.md:88 Include expected output for the final command to improve confidence.
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: caraya
- Source: caraya/agent-skills
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.