{"library":"skillflag","title":"Skillflag CLI Convention & Library","description":"Skillflag is a CLI convention and library for bundling, listing, and installing agent skills directly from a CLI tool's repository without relying on third-party registries. It provides a standardized `--skill` flag interface (`list`, `show`, `export`) for agents to discover and integrate capabilities. The current stable version is 0.1.4, indicating early development and a nascent ecosystem. As a new project, release cadence is currently irregular, but recent updates suggest active development. Its key differentiator is decentralizing skill discovery, enabling agents to parse skills directly from a tool's published repository, akin to a `--help` or `manpage` for skills, reducing overhead and central points of failure associated with traditional skill registries. It targets Node.js (>=18) environments and ships with TypeScript types.","language":"javascript","status":"active","last_verified":"Wed Apr 22","install":{"commands":["npm install skillflag"],"cli":{"name":"skillflag","version":null}},"imports":["import { findSkillsRoot } from 'skillflag'","import { maybeHandleSkillflag } from 'skillflag'","import { SkillflagCli } from 'skillflag'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import { findSkillsRoot, maybeHandleSkillflag } from 'skillflag';\nimport process from 'node:process';\n\nasync function main() {\n  // Intercept --skill arguments and delegate to skillflag logic\n  const handled = await maybeHandleSkillflag(process.argv, {\n    skillsRoot: findSkillsRoot(import.meta.url), // Automatically locate the 'skills' directory\n  });\n\n  if (handled) {\n    return; // Skillflag handled the command, exit without further CLI processing\n  }\n\n  // ... Your existing CLI logic for other commands ...\n  console.log('Your CLI running other commands...');\n  // Example: hue-cli --help for other commands\n}\n\nmain().catch(console.error);\n","lang":"typescript","description":"Demonstrates how to integrate skillflag into a Node.js/TypeScript CLI by intercepting `--skill` arguments and delegating to the library, ensuring proper skill discovery.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}