/** * Skills Marketplace Client - Manage Anthropic Agent Skills marketplaces * * Integrates with the official anthropics/skills repository and * user-defined marketplaces to discover and install Agent Skills */ export interface SkillsMarketplace { name: string; repo: string; url: string; sourceType: 'github' | 'git-ssh' | 'url' | 'local'; source: string; enabled: boolean; lastUpdated?: string; } export interface SkillsMarketplaceConfig { marketplaces: SkillsMarketplace[]; } /** * Skill metadata from SKILL.md YAML frontmatter */ export interface SkillMetadata { name: string; description: string; license?: string; version?: string; author?: string; tags?: string[]; tools?: string[]; plugin?: string; } /** * Claude Code Plugin from marketplace.json */ export interface ClaudePlugin { name: string; description: string; source: string; strict: boolean; skills: string[]; } /** * Marketplace manifest (.claude-plugin/marketplace.json) */ export interface SkillsMarketplaceManifest { name: string; owner?: { name: string; email?: string; }; metadata?: { version: string; description: string; }; plugins: ClaudePlugin[]; } export declare class SkillsMarketplaceClient { private config; initialize(): Promise; save(): Promise; /** * Get all marketplaces */ getAll(): SkillsMarketplace[]; /** * Get enabled marketplaces */ getEnabled(): SkillsMarketplace[]; /** * Add a new marketplace */ addMarketplace(source: string): Promise; /** * Remove a marketplace */ removeMarketplace(name: string): Promise; /** * Detect source type from a string * Supports: * - GitHub shorthand: username/repo * - GitHub HTTPS: https://github.com/username/repo[.git] * - GitHub SSH: git@github.com:username/repo.git * - Direct URL: https://example.com/skills.json * - Local path: ./path or /absolute/path */ private detectSourceType; /** * Extract marketplace name from source */ private extractMarketplaceName; /** * Build URL from source based on type */ private buildUrl; /** * Fetch marketplace manifest from remote source */ fetchManifest(marketplace: SkillsMarketplace): Promise; /** * Fetch SKILL.md content from marketplace */ fetchSkillContent(marketplace: SkillsMarketplace, skillPath: string): Promise; /** * Parse SKILL.md YAML frontmatter */ parseSkillMetadata(content: string, skillPath: string): SkillMetadata | null; /** * Build and cache skills index from all marketplaces */ private buildSkillsIndex; /** * Get cached skills index (builds if cache is stale/missing) */ private getSkillsIndex; /** * Search for skills across all enabled marketplaces (FAST - uses cached index + fuzzy matching) * @deprecated Use searchMarketplace() instead for clarity */ search(query?: string): Promise; /** * Search marketplace with support for multi-query (| separated) * Uses cached index for fast results */ searchMarketplace(queries?: string[]): Promise; /** * Install a skill from marketplace */ install(skillName: string): Promise<{ success: boolean; message: string; skillPath?: string; }>; /** * Download entire skill directory structure (reference/, scripts/, etc.) */ private downloadSkillDirectory; /** * Recursively download directory contents */ private downloadSkillDirectoryRecursive; /** * List installed skills from ~/.ncp/skills/ */ listInstalled(): Promise; /** * Refresh skills index cache (force rebuild) */ refreshCache(): Promise; /** * Remove an installed skill */ remove(skillName: string): Promise<{ success: boolean; message: string; }>; } //# sourceMappingURL=skills-marketplace-client.d.ts.map