Skip to content
Back to skills

Build Prompts

BSecurity

Upload one skill to the Anthropic Skills API to validate the upload flow and confirm the skill loads correctly in a Managed Agent. Use the `skills/common/` skill since it's the simplest.

  • 9 stars
  • 0 votes
  • 0 copies
  • 6 views
  • Added September 7, 2026
ai-agentspythonbashgitapidocumentation

Works with

  • api

Security analysis

B84/100
  • mediumUses curl or wget to download content
  • criticalDownloads and executes remote scripts — classic supply chain attack

Pro scans all 21 files and shows the line behind each finding

Scanned September 7, 2026

npx -y skills add mark64oswald/healthsim-workspace --skill build-prompts --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Build Prompts?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Build Prompts
[![Security: B — Skills Directory](https://www.skillsdirectory.com/api/skills/mark64oswald-build-prompts/badge)](https://www.skillsdirectory.com/skills/mark64oswald-build-prompts)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
# p0-05: Upload Test Skill to Skills API

## What to build

Upload one skill to the Anthropic Skills API to validate the upload flow and confirm the skill loads correctly in a Managed Agent. Use the `skills/common/` skill since it's the simplest.

## Context

The Anthropic Skills API allows uploading custom skills via `POST /v1/skills`. Skills require the `managed-agents-2026-04-01` beta header. The API returns a skill ID that you reference when creating an agent.

Read the Skills API documentation first. The Anthropic Python SDK should support skills — check via:
```bash
.venv/bin/python -c "import anthropic; help(anthropic.Anthropic().beta)"
```

If the SDK doesn't have direct skills support yet (it's beta), use raw HTTP requests via the `requests` library or `curl`.

## Tasks

1. **Read the current common skill** to understand what we're uploading:
   ```bash
   cat skills/common/SKILL.md
   ls skills/common/
   ```

2. **Create `deploy/push-skills.py`** — a minimal version that uploads a single skill. This will be expanded in Phase 2 to handle all skills from the manifest. For now, it should:

   a. Load `ANTHROPIC_API_KEY` from `.env`
   b. Read the skill file(s) from a given path
   c. Upload via `POST /v1/skills` with the beta header
   d. Print the returned skill ID
   e. Save the skill ID to `deploy/skill-ids.json`

   The script should accept a `--path` argument for the skill directory and a `--name` argument for the skill identifier.

   Usage:
   ```bash
   .venv/bin/python deploy/push-skills.py \
     --path ./skills/common/ \
     --name skill_healthsim_common_v1
   ```

3. **Run the upload**:
   ```bash
   source .env
   .venv/bin/python deploy/push-skills.py \
     --path ./skills/common/ \
     --name skill_healthsim_common_v1
   ```

4. **Verify the upload** by listing skills:
   ```bash
   curl -s https://api.anthropic.com/v1/skills \
     -H "x-api-key: $ANTHROPIC_API_KEY" \
     -H "anthropic-version: 2023-06-01" \
     -H "anthropic-beta: managed-agents-2026-04-01" | python -m json.tool
   ```

5. **Record the skill ID** in `deploy/skill-ids.json`:
   ```json
   {
     "skill_healthsim_common_v1": "skill_01abc..."
   }
   ```

6. **Git commit**: "feat: add push-skills.py and upload test skill"

## Deliverables

- `deploy/push-skills.py` (minimal, single-skill version)
- `deploy/skill-ids.json` with the uploaded skill ID
- Verified: skill appears in Skills API listing
- Committed

## Important

- The Skills API is in beta. If the endpoint structure or request format differs from what's documented here, adapt accordingly. The Anthropic docs at `platform.claude.com/docs/en/agents-and-tools/agent-skills/` are the authoritative source.
- If multi-file skills (SKILL.md + supporting .md files) need special handling for the API, document what you learn — we'll need this knowledge for Phase 2 when uploading all 9 skills.
- Do NOT modify the skill content yet. Upload it as-is. Adaptation (replacing embedded data refs, adding output format sections) happens in Phase 2.

Files in this skill

  • docs-audit.md10.5 KB
  • p0-01-scaffold.md2 KB
  • p0-02-mcp-http.md2.9 KB
  • p0-03-motherduck.md3 KB
  • p0-04-deploy-railway.md3.3 KB
  • p0-05-test-skill.md3 KB
  • p0-06-managed-agent.md5.8 KB
  • p0-README.md1.7 KB
  • p1-01-full-migration.md2.7 KB
  • p1-02-connection-manager.md3 KB
  • p1-03-mcp-motherduck.md2.2 KB
  • p1-04-deploy-production.md1.9 KB
  • p1-05-verify-local.md1.8 KB
  • p1-README.md1003 B
  • p2-01-push-skills-full.md1.8 KB
  • p2-02-adapt-populationsim.md2.6 KB
  • p2-03-adapt-product-skills.md2.2 KB
  • p2-04-adapt-remaining.md2 KB
  • p2-05-upload-all.md1.6 KB
  • p2-README.md1.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.