Creates or modifies a capability class in domain/capabilities/ and its corresponding Has* interface in domain/tools/contracts.ts. Use when adding a new tool runtime behavior (agents, skills, commands, rules, mcp, hooks, settings, plugins), changing the constructor params of an existing capability class, or wiring a new capability into an existing AiTool definition. Do NOT use for AI tool definitions — use tool instead. Do NOT use for domain value objects or discriminant unions — use domain-model instead. Do NOT use for pure string transforms — use format instead.
$npx -y skills add ai-driven-dev/framework --skill capabilityInstalls into the current project.
Run `npx skills use "https://github.com/ai-driven-dev/framework" --skill "ai-driven-dev/framework/capability"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/ai-driven-dev/framework" that are relevant to the current task. Run `npx skills add "https://github.com/ai-driven-dev/framework"` and select the relevant skills, then follow their instructions.