Skip to content
Back to skills

Tasks

ASecurity

**Phase:** Phase 3 — Local Skills and Management **Status:** ✅ Done **Depends on:** TASK18, TASK23 **Input:** `name`, `description`, `body` (markdown without frontmatter), optional `files` (map of relative path to text content), `scope` (`"project"` or `"global"`). 1. Call `library.CreateLocal` (TASK23) with the resolved project. With `scope: "project"` and no `.quiver.json`, register the project first (TASK06), and say in the result that `.quiver.json` was created and should be committed. 2....

  • 6 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 6, 2026
ai-agentsgo

Works with

  • claude code
  • mcp

Security analysis

A100/100

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

Scanned November 6, 2026

npx -y skills add kheif/quiver --skill tasks --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Tasks?

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

Security grade badge for Tasks
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/kheif-tasks/badge)](https://www.skillsdirectory.com/skills/kheif-tasks)

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
# TASK24 — `create_skill`

**Phase:** Phase 3 — Local Skills and Management

**Status:** ✅ Done

**Depends on:** TASK18, TASK23

**Input:** `name`, `description`, `body` (markdown without frontmatter), optional `files` (map of relative path to text content), `scope` (`"project"` or `"global"`).

1. Call `library.CreateLocal` (TASK23) with the resolved project. With `scope: "project"` and no `.quiver.json`, register the project first (TASK06), and say in the result that `.quiver.json` was created and should be committed.
2. The tool description tells the assistant to ask the user for the scope if the user did not say it.
3. Return the new skill's ID, folder path and scope.
4. Errors that the assistant can fix (invalid name, name taken) return a clear message and a suggested alternative name.
5. Mark the tool with the MCP annotations `readOnlyHint: false` and `destructiveHint: false`.

**Notes:**
- The tool is in `internal/server/create.go`. Its input schema restricts `scope` to `project` and `global`, and the handler checks it again.
- The served project used to be fixed at startup. It now lives in a `session` with a mutex (`internal/server/server.go`): when `create_skill` registers the folder, every later request in the session serves that project.
- `registry.RegisterProject` finds or registers the project and records it under one lock. `quiver new` uses it too.
- Error hints: an invalid name suggests its slug (`My Notes!` gives `my-notes`); a taken name suggests the first free `<name>-N`. Path errors come from `library.CreateLocal`.
- The server `instructions` now always end with a pointer to `create_skill`, inside the 3800-byte budget (`createHint`, `buildInstructions`). Without it the manual test failed: Claude Code defers MCP tools, the instructions were empty for an empty library, and Claude wrote the skill file itself.
- Manual test, run headless: `claude -p` in a new folder with `--mcp-config` pointing to `bin/quiver` and a temporary `QUIVER_HOME`. Claude called `create_skill` with `scope: "project"`, `.quiver.json` was created, and `quiver status` listed the skill as `project`.
- Backlog B07 (approval for global skills) is not planned: a skill created with `scope: "global"` is active at once.

**Done when:**
- Harness tests cover both scopes, an unregistered project, a taken name and path traversal in `files`.
- A manual test in Claude Code creates a project skill from a conversation, and `quiver status` shows it.

Files in this skill

  • README.md12.8 KB
  • TASK01-repository-setup.md1.3 KB
  • TASK02-paths-atomic-writes-and-locking.md761 B
  • TASK03-config.md600 B
  • TASK04-quiver-init.md557 B
  • TASK05-skill-parsing-and-validation.md862 B
  • TASK06-project-identification-quiver-json.md1 KB
  • TASK07-registry-and-assignments.md1.7 KB
  • TASK08-library-local-skills.md1 KB
  • TASK09-git-wrapper.md1.1 KB
  • TASK10-source-url-parsing.md1.1 KB
  • TASK11-skill-discovery.md2.3 KB
  • TASK12-library-with-remote-sources.md1.5 KB
  • TASK13-quiver-source-add-list-remove.md2 KB
  • TASK14-quiver-add-quiver-remove.md1.8 KB
  • TASK15-quiver-update.md1.9 KB
  • TASK16-mcp-server-skeleton-quiver-mcp.md1.7 KB
  • TASK17-project-resolution-in-the-server.md2.2 KB
  • TASK18-list-skills-get-skill-get-skill-file.md3.9 KB
  • TASK19-always-on-skills-mcp-instructions.md2.9 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.