Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By directive-runv0.1.0In 1 marketplace
Build Directive TypeScript state modules and systems, or migrate Redux or Zustand code to them. Adds guardrails, token budgets and mock-runner tests to AI orchestrators.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
@directive-run/claude-pluginClaude Code plugin providing coding guidance for the Directive runtime. Delivers 12 skills that Claude automatically invokes when you're working with Directive code.
The package has two install paths: Claude Code's plugin marketplace for end users (the canonical path), and npm for tool authors who want to consume the skill bundles programmatically.
Two steps in a Claude Code session – first register the marketplace, then install the plugin:
/plugin marketplace add directive-run/directive
/plugin install directive@directive-plugins
After install, verify the plugin is active with /plugins – you should see directive in the list.
npm install @directive-run/claude-plugin
The npm package ships the pre-built skills/ directory and exposes it through a small programmatic API. Use this when you're building a custom skill registry, doc-generation pipeline, evals harness, or AI orchestrator that wants to expose Directive skills via its own routing layer.
import {
listSkills,
getSkill,
getAllSkills,
getSkillFile,
type Skill,
} from "@directive-run/claude-plugin";
// All skill names, alphabetical
const names = listSkills();
// → ["building-ai-agents", "building-ai-orchestrators", ...]
// One skill – manifest + supporting files
const skill = getSkill("building-ai-orchestrators");
skill?.manifest; // SKILL.md (with YAML frontmatter)
skill?.files.get("examples"); // examples.md contents
// All skills, keyed by name
const all = getAllSkills(); // Map<string, Skill>
// One supporting file
const ex = getSkillFile("building-ai-orchestrators", "examples");
The npm install path is not a replacement for the Claude Code plugin install – it does not register the skills with Claude Code itself. It only exposes the same skills/ directory as a typed module so other tools can read it.
Skills are model-invoked: Claude reads each skill's description and automatically loads the relevant skill when your task matches. There is nothing to invoke manually. You write code, Claude pulls in the right skill.
Each of the 12 skills bundles:
SKILL.md with a decision tree and quick-reference patterns.md files copied from @directive-run/knowledgeexamples/ directoryWhen Claude invokes a skill, the skill name appears in the response (/<plugin>:<skill> namespaced). You can also call a skill directly:
/directive:writing-directive-modules
/directive:writing-directive-constraints
/directive:hardening-ai-systems
| Skill | Description |
|---|---|
getting-started-with-directive | Understand Directive fundamentals and mental model |
writing-directive-modules | Write modules with correct schema, type builders, naming |
writing-directive-constraints | Write constraints and resolvers with error boundaries |
building-directive-systems | Build multi-module systems with plugins and React |
testing-directive-code | Test with createTestSystem, mockResolver, time-travel |
building-ai-orchestrators | Build single and multi-agent AI orchestrators |
building-ai-agents | Create agents with streaming, adapters, communication |
hardening-ai-systems | Add guardrails, budgets, security to AI systems |
testing-ai-systems | Test AI systems with mock runners and evaluations |
reviewing-directive-code | Review code for anti-patterns and naming violations |
scaffolding-directive-modules | Generate module scaffolds with matching test files |
migrating-to-directive | Migrate from Redux, Zustand, XState, MobX to Directive |
# Build skills from knowledge package
pnpm --filter @directive-run/claude-plugin build
# Run tests
pnpm --filter @directive-run/claude-plugin test
# Test locally with Claude Code
claude --plugin-dir packages/claude-plugin
Skills are built from @directive-run/knowledge + hand-authored templates in templates/. The build script (scripts/build-skills.ts) assembles the skills/ directories.
The same knowledge ships through @directive-run/cli as rules files for every other AI assistant. Run it from your project:
npx directive ai-rules init
Generates .cursorrules, .clinerules, copilot-instructions.md, windsurf.md, OpenAI Codex AGENTS.md, and CLAUDE.md files tuned to each assistant's ingestion conventions.
See /docs/ide-integration for the full decision tree across Claude Code, Cursor, Copilot, Windsurf, Cline, and Codex.
7-day copy clicks
npx claudepluginhub directive-run/directive --plugin directivePlugins from other owners that cover similar ground
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.