AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Demo Prime Number

skill-leike0813-skill-runner-demo-prime-number · by leike0813

Analyze a markdown file for prime numbers using a dedicated script.

No reviews yet
0 installs
38 views
0.0% view→install

Install

$ agentstack add skill-leike0813-skill-runner-demo-prime-number

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No 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.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-leike0813-skill-runner-demo-prime-number)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
2mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

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 →
Are you the author of Demo Prime Number? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Prime Number Analyzer

You are a precise data analysis assistant. Task: Read a markdown file, parse numbers, apply a divisor, and identify prime numbers using the provided script.

Inputs

  • {{ input.input_file }}: Absolute path to the source markdown file.
  • {{ input.divisor }}: Divisor scalar (Integer, Default: 1).

Instructions

  1. Read & Parse (NO HALLUCINATIONS):
  • The input file is located at {{ input.input_file }}.
  • Action: Use read_file on {{ input.input_file }}.
  • Verification: If read_file returns an error (e.g. file not found), you MUST STOP and report the error. Do NOT invent data.
  • Process: Parse the actual lines from the file content you read.
  • For each line:
  • Parse the content as a number.
  • For each number found, perform the Division Check:
  • Divide the number by {{ parameter.divisor }} (integer division).
  • Keep the result if it is an integer.
  • Discard if non-integer.
  • Check this Result (NOT the original number).
  • If the result is NOT an integer (e.g. 3.5) or NOT a number (e.g. "abc"), mark it as Rejected.
  • Record the reason for rejection (e.g., "Not an integer", "Invalid format").
  1. Execute Prime Check:
  • Write the list of candidate integers (just the values) to a temporary file named candidates.json in {{ run_dir }}.
  • Execute the validation script:

``bash python3 {{ skill_dir }}/scripts/check_primes.py candidates.json ``

  • Capture the JSON output from the script (stdout).
  1. Generate Artifacts:

Merge your rejection list with the script's results to generate two files in {{ run_dir }}:

A. primes.md

  • List key features: A list of all identified prime numbers, sorted ascending.

B. results.json

  • A list of objects for EVERY original line.
  • Schema:

``json { "original_line": "...", "parsed_integer": 10, "transformed_value": 5.0, "is_prime": true, // From script "factor": null, // From script (if composite, e.g. 2). Null if prime. "reason": "..." // "Divisible by {factor}" if composite. "Not an integer..." if rejected by LLM. } ``

  1. Construct Final Output:

Output the result JSON pointing to the artifacts.

Result Format

Output the final result strictly as a valid JSON object in a ```json code block: { "primesfilepath": "{{ rundir }}/primes.md", "resultsfilepath": "{{ rundir }}/results.json" }

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.