@skillkit/core 1.6.2 → 1.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -8028,6 +8028,16 @@ declare function getAgentStats(searchDirs: string[]): {
8028
8028
  enabled: number;
8029
8029
  disabled: number;
8030
8030
  };
8031
+ /**
8032
+ * Recursively discover all agents in a directory tree
8033
+ * This finds agents at any depth, useful for batch translation
8034
+ */
8035
+ declare function discoverAgentsRecursive(rootDir: string, location?: AgentLocation): CustomAgent[];
8036
+ /**
8037
+ * Discover agents from a custom source path
8038
+ * Handles both file paths and directories
8039
+ */
8040
+ declare function discoverAgentsFromPath(sourcePath: string, recursive?: boolean, location?: AgentLocation): CustomAgent[];
8031
8041
 
8032
8042
  /**
8033
8043
  * Agent Translator
@@ -8067,4 +8077,4 @@ declare function isAgentCompatible(sourceFormat: AgentFormatCategory, targetForm
8067
8077
  warnings: string[];
8068
8078
  };
8069
8079
 
8070
- export { AGENT_CLI_CONFIGS, AGENT_DISCOVERY_PATHS, AGENT_FORMAT_MAP, type AIConfig, type AIGenerateOptions, AIManager, type AIProvider, AISearch, type AISearchOptions, type AISearchResult, AISkillGenerator, ALL_AGENT_DISCOVERY_PATHS, APIBasedCompressor, type APICompressionConfig, type ActivatedSkill, type AgentAdapterInfo, type AgentCLIConfig, type AgentCommandFormat, AgentConfig, type AgentExecutionResult, type AgentFormatCategory, AgentFrontmatter, AgentHook, type AgentHookFormat, type AgentInstance, AgentLocation, AgentMetadata, AgentPermissionMode, type AgentStatus, type AgentTranslationOptions, type AgentTranslationResult, AgentType, type AssertionResult, type AuditEvent, type AuditEventType, type AuditExportOptions, AuditLogger, type AuditQuery, type AuditStats, BaseAIProvider, BitbucketProvider, type BundleManifest, CIRCLECI_CONFIG_TEMPLATE, CONTEXT_DIR, CONTEXT_FILE, CUSTOM_AGENT_FORMAT_MAP, type CanonicalAgent, type CanonicalSkill, type CheckpointHandler, type CheckpointResponse, type CloneOptions, type CloneResult, type CommandArg, type CommandBundle, type CommandContext, type CommandEvent, type CommandEventListener, CommandGenerator, type CommandGeneratorOptions, type CommandHandler, type CommandPlugin, CommandRegistry, type CommandRegistryOptions, type CommandResult, type CommandSearchOptions, type CommandValidationResult, type CompressedLearning, type CompressionEngine, type CompressionOptions, type CompressionResult, type ContextCategory, type ContextExportOptions, type ContextImportOptions, type ContextLoadOptions, ContextLoader, ContextManager, ContextSync, type ContextSyncOptions, CopilotTranslator, type CurrentExecution, CursorTranslator, type CustomAgent, DEFAULT_CACHE_TTL, DEFAULT_CONTEXT_CATEGORIES, DEFAULT_MEMORY_CONFIG, DEFAULT_SCORING_WEIGHTS, DEFAULT_SKILL_SOURCES, DependencyInfo, Detection, type DetectionSource, type DiscoveredSkill, type ExecutableSkill, type ExecutableTask, type ExecutableTaskType, type ExecutionHistory, type ExecutionOptions, type ExecutionProgressCallback, type ExecutionProgressEvent, type ExecutionStrategy, type ExecutionTaskStatus, type FormatCategory, type FormatTranslator, type FreshnessResult, GITHUB_ACTION_TEMPLATE, GITLAB_CI_TEMPLATE, type GenerateOptions, type GeneratedSkill, GitHubProvider, GitLabProvider, GitProvider, type GitProviderAdapter, type HookConfig, type HookContext, type HookError, type HookEvent, type HookEventListener, HookManager, type HookManagerOptions, type HookTriggerResult, INDEX_CACHE_HOURS, INDEX_PATH, type ImportOptions, type IndexSource, type InjectedMemory, type InjectionMode, type InjectionOptions, type InjectionResult, type InstallOptions, type InstallResult, type InstalledPackInfo, type InstalledSkillInfo, type IssueSeverity, KNOWN_SKILL_REPOS, type Learning, LearningConsolidator, LearningStore, type LearningStoreData, type LoadedContext, LocalProvider, MARKETPLACE_CACHE_FILE, MarketplaceAggregator, type MarketplaceConfig, type MarketplaceIndex, type MarketplaceSearchOptions, type MarketplaceSearchResult, type MarketplaceSkill, type MatchCategory, type MatchReason, type MatcherFunction, MemoryCompressor, type MemoryConfig, MemoryEnabledEngine, type MemoryEnabledEngineOptions, type MemoryFull, type MemoryIndex, MemoryIndexStore, MemoryInjector, MemoryObserver, type MemoryObserverConfig, type MemoryPaths, type MemoryPreview, type MemorySearchOptions, type MemorySearchResult, type MemoryStatus, type MemorySummary, type MessageHandler, type MessageType, MethodologyLoader, MethodologyManager, type MethodologyManagerOptions, type MethodologyPack, type MethodologySearchQuery, type MethodologySearchResult, type MethodologySkill, type MethodologySkillMetadata, type MethodologyState, type MethodologySyncResult, MockAIProvider, type ObservableEvent, type ObservableEventType, type Observation, type ObservationContent, ObservationStore, type ObservationStoreData, type ObservationType, type OrchestratorOptions, type OrchestratorTaskStatus, type OrchestratorTeamConfig, PRE_COMMIT_CONFIG_TEMPLATE, PRE_COMMIT_HOOK_TEMPLATE, PROJECT_TYPE_HINTS, type ParseOptions, type PlanEvent, type PlanEventListener, type PlanExecutionOptions, type PlanExecutionResult, PlanExecutor, PlanGenerator, PlanParser, type PlanResult, type PlanStatus, type PlanStep, type PlanTask, type PlanTaskFiles, type PlanTaskResult, type PlanValidationResult, PlanValidator, type Plugin, type PluginConfig, type PluginContext, type PluginHooks, PluginLoader, PluginManager, type PluginMetadata, ProjectContext, ProjectDetector, ProjectPatterns, type ProjectProfile, ProjectStack, type ProviderPlugin, type RecommendOptions, RecommendationEngine, type RecommendationResult, type RegisteredCommand, type RegistrySkill, type ReviewIssue, type ReviewResult, type ReviewStage, type ReviewStageName, RuleBasedCompressor, SESSION_FILE, SKILL_DISCOVERY_PATHS, type ScoredSkill, type ScoringWeights, type SearchOptions, type SearchResult, type SearchableSkill, type SessionDecision, SessionManager, type SessionState, type SessionTask, type ShareOptions, type SharedSkill, Skill, SkillBundle, type SkillExample, SkillExecutionEngine, type SkillExecutionEvent, type SkillExecutionResult, type SkillExecutor, type SkillExecutorOptions, SkillFrontmatter, type SkillHook, type SkillIndex, SkillLocation, SkillMdTranslator, SkillMetadata, SkillPreferences, type SkillSource, SkillSummary, type SkillTestCase, type SkillTestSuite, SkillTriggerEngine, SkillkitConfig, type SlashCommand, type SlashCommandResult, type StepExecutor, type StepType, type StructuredPlan, type SyncOptions, type SyncReport, type SyncResult, TAG_TO_TECH, TASK_TEMPLATES, type Task, type TaskEvent, type TaskEventListener, type TaskExecutionResult, type TaskFiles, type TaskFilter, TaskManager, type TaskPlan, type TaskResult, type TaskStatus, type TaskStep, type TaskTemplate, type Team, type TeamConfig, type TeamEvent, type TeamEventListener, TeamManager, type TeamMember, type TeamMessage, TeamMessageBus, TeamOrchestrator, type TeamRegistry, type TeamStatus, type TestAssertion, type TestAssertionType, type TestCaseResult, type TestProgressEvent, type TestResult, type TestRunnerOptions, type TestSuiteResult, TranslatableSkillFrontmatter, type TranslationOptions, type TranslationPath, type TranslationResult, type TranslatorPlugin, TranslatorRegistry, type TriggerEngineOptions, type UpdateOptions, type ValidationError, type ValidationIssue, type ValidationResult, type ValidationWarning, type ValidatorOptions, type VerificationRule, WORKFLOWS_DIR, WORKFLOW_EXTENSION, type WaveExecutionStatus, WindsurfTranslator, type Workflow, type WorkflowExecution, type WorkflowExecutionStatus, WorkflowOrchestrator, type WorkflowProgressCallback, type WorkflowSkill, type WorkflowWave, agentExists, analyzeProject, buildSkillIndex, canTranslate, copilotTranslator, createAPIBasedCompressor, createCommandGenerator, createCommandRegistry, createContextLoader, createContextManager, createContextSync, createExecutionEngine, createHookManager, createMarketplaceAggregator, createMemoryCompressor, createMemoryEnabledEngine, createMemoryInjector, createMemoryObserver, createMessageBus, createMethodologyLoader, createMethodologyManager, createPlanExecutor, createPlanGenerator, createPlanParser, createPlanValidator, createPluginManager, createRecommendationEngine, createRuleBasedCompressor, createSessionManager, createSimulatedSkillExecutor, createSkillBundle, createSkillExecutor, createTaskManager, createTeamManager, createTeamOrchestrator, createTestSuiteFromFrontmatter, createTriggerEngine, createWorkflowOrchestrator, createWorkflowTemplate, cursorTranslator, detectProvider, detectSkillFormat, discoverAgents, discoverAgentsForAgent, discoverGlobalAgents, discoverSkills, dryRunExecutor, estimateTokens, executeWithAgent, exportBundle, extractAgentContent, extractAgentFrontmatter, extractField, extractFrontmatter, extractSkillMetadata, fetchSkillsFromRepo, findAgent, findAllAgents, findAllSkills, findSkill, formatSkillAsPrompt, fromCanonicalAgent, getAgentCLIConfig, getAgentConfigPath, getAgentFilename, getAgentFormat, getAgentStats, getAgentTargetDirectory, getAgentsDirectory, getAllProviders, getAvailableCLIAgents, getBuiltinPacksDir, getCICDTemplate, getExecutionStrategy, getGlobalConfigPath, getIndexStatus, getInstallDir, getManualExecutionInstructions, getMemoryPaths, getMemoryStatus, getProjectConfigPath, getProvider, getSearchDirs, getStackTags, getSupportedTranslationAgents, getTechTags, globalMemoryDirectoryExists, importBundle, initContext, initProject, initializeMemoryDirectory, isAgentCLIAvailable, isAgentCompatible, isGitUrl, isIndexStale, isLocalPath, isPathInside, listCICDTemplates, listWorkflows, loadAgentMetadata, loadConfig, loadContext, loadIndex, loadMetadata, loadPlugin, loadPluginsFromDirectory, loadSkillMetadata, loadWorkflow, loadWorkflowByName, memoryDirectoryExists, parseAgentDir, parseAgentFile, parseShorthand, parseSkill, parseSkillContent, parseSource, parseWorkflow, readAgentContent, readSkillContent, runTestSuite, saveConfig, saveIndex, saveSkillMetadata, saveWorkflow, serializeWorkflow, setSkillEnabled, shellExecutor, skillMdTranslator, supportsSlashCommands, syncToAgent, syncToAllAgents, toCanonicalAgent, translateAgent, translateAgentContent, translateAgents, translateCanonicalAgent, translateSkill, translateSkillFile, translatorRegistry, validateAgent, validateBuiltinPacks, validatePackDirectory, validatePackManifest, validatePlan, validateSkill, validateSkillContent, validateWorkflow, windsurfTranslator, wrapProgressCallbackWithMemory };
8080
+ export { AGENT_CLI_CONFIGS, AGENT_DISCOVERY_PATHS, AGENT_FORMAT_MAP, type AIConfig, type AIGenerateOptions, AIManager, type AIProvider, AISearch, type AISearchOptions, type AISearchResult, AISkillGenerator, ALL_AGENT_DISCOVERY_PATHS, APIBasedCompressor, type APICompressionConfig, type ActivatedSkill, type AgentAdapterInfo, type AgentCLIConfig, type AgentCommandFormat, AgentConfig, type AgentExecutionResult, type AgentFormatCategory, AgentFrontmatter, AgentHook, type AgentHookFormat, type AgentInstance, AgentLocation, AgentMetadata, AgentPermissionMode, type AgentStatus, type AgentTranslationOptions, type AgentTranslationResult, AgentType, type AssertionResult, type AuditEvent, type AuditEventType, type AuditExportOptions, AuditLogger, type AuditQuery, type AuditStats, BaseAIProvider, BitbucketProvider, type BundleManifest, CIRCLECI_CONFIG_TEMPLATE, CONTEXT_DIR, CONTEXT_FILE, CUSTOM_AGENT_FORMAT_MAP, type CanonicalAgent, type CanonicalSkill, type CheckpointHandler, type CheckpointResponse, type CloneOptions, type CloneResult, type CommandArg, type CommandBundle, type CommandContext, type CommandEvent, type CommandEventListener, CommandGenerator, type CommandGeneratorOptions, type CommandHandler, type CommandPlugin, CommandRegistry, type CommandRegistryOptions, type CommandResult, type CommandSearchOptions, type CommandValidationResult, type CompressedLearning, type CompressionEngine, type CompressionOptions, type CompressionResult, type ContextCategory, type ContextExportOptions, type ContextImportOptions, type ContextLoadOptions, ContextLoader, ContextManager, ContextSync, type ContextSyncOptions, CopilotTranslator, type CurrentExecution, CursorTranslator, type CustomAgent, DEFAULT_CACHE_TTL, DEFAULT_CONTEXT_CATEGORIES, DEFAULT_MEMORY_CONFIG, DEFAULT_SCORING_WEIGHTS, DEFAULT_SKILL_SOURCES, DependencyInfo, Detection, type DetectionSource, type DiscoveredSkill, type ExecutableSkill, type ExecutableTask, type ExecutableTaskType, type ExecutionHistory, type ExecutionOptions, type ExecutionProgressCallback, type ExecutionProgressEvent, type ExecutionStrategy, type ExecutionTaskStatus, type FormatCategory, type FormatTranslator, type FreshnessResult, GITHUB_ACTION_TEMPLATE, GITLAB_CI_TEMPLATE, type GenerateOptions, type GeneratedSkill, GitHubProvider, GitLabProvider, GitProvider, type GitProviderAdapter, type HookConfig, type HookContext, type HookError, type HookEvent, type HookEventListener, HookManager, type HookManagerOptions, type HookTriggerResult, INDEX_CACHE_HOURS, INDEX_PATH, type ImportOptions, type IndexSource, type InjectedMemory, type InjectionMode, type InjectionOptions, type InjectionResult, type InstallOptions, type InstallResult, type InstalledPackInfo, type InstalledSkillInfo, type IssueSeverity, KNOWN_SKILL_REPOS, type Learning, LearningConsolidator, LearningStore, type LearningStoreData, type LoadedContext, LocalProvider, MARKETPLACE_CACHE_FILE, MarketplaceAggregator, type MarketplaceConfig, type MarketplaceIndex, type MarketplaceSearchOptions, type MarketplaceSearchResult, type MarketplaceSkill, type MatchCategory, type MatchReason, type MatcherFunction, MemoryCompressor, type MemoryConfig, MemoryEnabledEngine, type MemoryEnabledEngineOptions, type MemoryFull, type MemoryIndex, MemoryIndexStore, MemoryInjector, MemoryObserver, type MemoryObserverConfig, type MemoryPaths, type MemoryPreview, type MemorySearchOptions, type MemorySearchResult, type MemoryStatus, type MemorySummary, type MessageHandler, type MessageType, MethodologyLoader, MethodologyManager, type MethodologyManagerOptions, type MethodologyPack, type MethodologySearchQuery, type MethodologySearchResult, type MethodologySkill, type MethodologySkillMetadata, type MethodologyState, type MethodologySyncResult, MockAIProvider, type ObservableEvent, type ObservableEventType, type Observation, type ObservationContent, ObservationStore, type ObservationStoreData, type ObservationType, type OrchestratorOptions, type OrchestratorTaskStatus, type OrchestratorTeamConfig, PRE_COMMIT_CONFIG_TEMPLATE, PRE_COMMIT_HOOK_TEMPLATE, PROJECT_TYPE_HINTS, type ParseOptions, type PlanEvent, type PlanEventListener, type PlanExecutionOptions, type PlanExecutionResult, PlanExecutor, PlanGenerator, PlanParser, type PlanResult, type PlanStatus, type PlanStep, type PlanTask, type PlanTaskFiles, type PlanTaskResult, type PlanValidationResult, PlanValidator, type Plugin, type PluginConfig, type PluginContext, type PluginHooks, PluginLoader, PluginManager, type PluginMetadata, ProjectContext, ProjectDetector, ProjectPatterns, type ProjectProfile, ProjectStack, type ProviderPlugin, type RecommendOptions, RecommendationEngine, type RecommendationResult, type RegisteredCommand, type RegistrySkill, type ReviewIssue, type ReviewResult, type ReviewStage, type ReviewStageName, RuleBasedCompressor, SESSION_FILE, SKILL_DISCOVERY_PATHS, type ScoredSkill, type ScoringWeights, type SearchOptions, type SearchResult, type SearchableSkill, type SessionDecision, SessionManager, type SessionState, type SessionTask, type ShareOptions, type SharedSkill, Skill, SkillBundle, type SkillExample, SkillExecutionEngine, type SkillExecutionEvent, type SkillExecutionResult, type SkillExecutor, type SkillExecutorOptions, SkillFrontmatter, type SkillHook, type SkillIndex, SkillLocation, SkillMdTranslator, SkillMetadata, SkillPreferences, type SkillSource, SkillSummary, type SkillTestCase, type SkillTestSuite, SkillTriggerEngine, SkillkitConfig, type SlashCommand, type SlashCommandResult, type StepExecutor, type StepType, type StructuredPlan, type SyncOptions, type SyncReport, type SyncResult, TAG_TO_TECH, TASK_TEMPLATES, type Task, type TaskEvent, type TaskEventListener, type TaskExecutionResult, type TaskFiles, type TaskFilter, TaskManager, type TaskPlan, type TaskResult, type TaskStatus, type TaskStep, type TaskTemplate, type Team, type TeamConfig, type TeamEvent, type TeamEventListener, TeamManager, type TeamMember, type TeamMessage, TeamMessageBus, TeamOrchestrator, type TeamRegistry, type TeamStatus, type TestAssertion, type TestAssertionType, type TestCaseResult, type TestProgressEvent, type TestResult, type TestRunnerOptions, type TestSuiteResult, TranslatableSkillFrontmatter, type TranslationOptions, type TranslationPath, type TranslationResult, type TranslatorPlugin, TranslatorRegistry, type TriggerEngineOptions, type UpdateOptions, type ValidationError, type ValidationIssue, type ValidationResult, type ValidationWarning, type ValidatorOptions, type VerificationRule, WORKFLOWS_DIR, WORKFLOW_EXTENSION, type WaveExecutionStatus, WindsurfTranslator, type Workflow, type WorkflowExecution, type WorkflowExecutionStatus, WorkflowOrchestrator, type WorkflowProgressCallback, type WorkflowSkill, type WorkflowWave, agentExists, analyzeProject, buildSkillIndex, canTranslate, copilotTranslator, createAPIBasedCompressor, createCommandGenerator, createCommandRegistry, createContextLoader, createContextManager, createContextSync, createExecutionEngine, createHookManager, createMarketplaceAggregator, createMemoryCompressor, createMemoryEnabledEngine, createMemoryInjector, createMemoryObserver, createMessageBus, createMethodologyLoader, createMethodologyManager, createPlanExecutor, createPlanGenerator, createPlanParser, createPlanValidator, createPluginManager, createRecommendationEngine, createRuleBasedCompressor, createSessionManager, createSimulatedSkillExecutor, createSkillBundle, createSkillExecutor, createTaskManager, createTeamManager, createTeamOrchestrator, createTestSuiteFromFrontmatter, createTriggerEngine, createWorkflowOrchestrator, createWorkflowTemplate, cursorTranslator, detectProvider, detectSkillFormat, discoverAgents, discoverAgentsForAgent, discoverAgentsFromPath, discoverAgentsRecursive, discoverGlobalAgents, discoverSkills, dryRunExecutor, estimateTokens, executeWithAgent, exportBundle, extractAgentContent, extractAgentFrontmatter, extractField, extractFrontmatter, extractSkillMetadata, fetchSkillsFromRepo, findAgent, findAllAgents, findAllSkills, findSkill, formatSkillAsPrompt, fromCanonicalAgent, getAgentCLIConfig, getAgentConfigPath, getAgentFilename, getAgentFormat, getAgentStats, getAgentTargetDirectory, getAgentsDirectory, getAllProviders, getAvailableCLIAgents, getBuiltinPacksDir, getCICDTemplate, getExecutionStrategy, getGlobalConfigPath, getIndexStatus, getInstallDir, getManualExecutionInstructions, getMemoryPaths, getMemoryStatus, getProjectConfigPath, getProvider, getSearchDirs, getStackTags, getSupportedTranslationAgents, getTechTags, globalMemoryDirectoryExists, importBundle, initContext, initProject, initializeMemoryDirectory, isAgentCLIAvailable, isAgentCompatible, isGitUrl, isIndexStale, isLocalPath, isPathInside, listCICDTemplates, listWorkflows, loadAgentMetadata, loadConfig, loadContext, loadIndex, loadMetadata, loadPlugin, loadPluginsFromDirectory, loadSkillMetadata, loadWorkflow, loadWorkflowByName, memoryDirectoryExists, parseAgentDir, parseAgentFile, parseShorthand, parseSkill, parseSkillContent, parseSource, parseWorkflow, readAgentContent, readSkillContent, runTestSuite, saveConfig, saveIndex, saveSkillMetadata, saveWorkflow, serializeWorkflow, setSkillEnabled, shellExecutor, skillMdTranslator, supportsSlashCommands, syncToAgent, syncToAllAgents, toCanonicalAgent, translateAgent, translateAgentContent, translateAgents, translateCanonicalAgent, translateSkill, translateSkillFile, translatorRegistry, validateAgent, validateBuiltinPacks, validatePackDirectory, validatePackManifest, validatePlan, validateSkill, validateSkillContent, validateWorkflow, windsurfTranslator, wrapProgressCallbackWithMemory };
package/dist/index.js CHANGED
@@ -3913,8 +3913,8 @@ async function buildSkillIndex(repos = KNOWN_SKILL_REPOS, onProgress) {
3913
3913
  onProgress?.("No skills fetched, using sample index...");
3914
3914
  allSkills.push(...getSampleSkills());
3915
3915
  sources.push({
3916
- name: "skillkit-samples",
3917
- url: "https://github.com/skillkit/samples",
3916
+ name: "built-in",
3917
+ url: "https://github.com/rohitg00/skillkit",
3918
3918
  lastFetched: (/* @__PURE__ */ new Date()).toISOString(),
3919
3919
  skillCount: allSkills.length
3920
3920
  });
@@ -3960,7 +3960,7 @@ function getSampleSkills() {
3960
3960
  {
3961
3961
  name: "react-best-practices",
3962
3962
  description: "Modern React patterns including Server Components, hooks best practices, and performance optimization",
3963
- source: "skillkit/samples",
3963
+ source: "built-in",
3964
3964
  tags: ["react", "frontend", "typescript", "nextjs", "performance"],
3965
3965
  compatibility: {
3966
3966
  frameworks: ["react", "nextjs"],
@@ -3975,7 +3975,7 @@ function getSampleSkills() {
3975
3975
  {
3976
3976
  name: "tailwind-patterns",
3977
3977
  description: "Tailwind CSS utility patterns, responsive design, and component styling best practices",
3978
- source: "skillkit/samples",
3978
+ source: "built-in",
3979
3979
  tags: ["tailwind", "css", "styling", "frontend", "responsive"],
3980
3980
  compatibility: {
3981
3981
  frameworks: [],
@@ -3990,7 +3990,7 @@ function getSampleSkills() {
3990
3990
  {
3991
3991
  name: "typescript-strict-patterns",
3992
3992
  description: "TypeScript strict mode patterns, type safety, and advanced type utilities",
3993
- source: "skillkit/samples",
3993
+ source: "built-in",
3994
3994
  tags: ["typescript", "types", "safety", "patterns"],
3995
3995
  compatibility: {
3996
3996
  frameworks: [],
@@ -4005,7 +4005,7 @@ function getSampleSkills() {
4005
4005
  {
4006
4006
  name: "security-best-practices",
4007
4007
  description: "Security patterns for web applications including XSS prevention, CSRF, and secure headers",
4008
- source: "skillkit/samples",
4008
+ source: "built-in",
4009
4009
  tags: ["security", "xss", "csrf", "headers", "owasp"],
4010
4010
  compatibility: {
4011
4011
  frameworks: [],
@@ -4020,7 +4020,7 @@ function getSampleSkills() {
4020
4020
  {
4021
4021
  name: "testing-patterns",
4022
4022
  description: "Testing patterns with Vitest/Jest including mocking, assertions, and test organization",
4023
- source: "skillkit/samples",
4023
+ source: "built-in",
4024
4024
  tags: ["vitest", "jest", "testing", "typescript", "mocking", "tdd"],
4025
4025
  compatibility: {
4026
4026
  frameworks: [],
@@ -16368,6 +16368,81 @@ function getAgentStats(searchDirs) {
16368
16368
  disabled: allAgents.filter((a) => !a.enabled).length
16369
16369
  };
16370
16370
  }
16371
+ function discoverAgentsRecursive(rootDir, location = "project") {
16372
+ const agents = [];
16373
+ const seen = /* @__PURE__ */ new Set();
16374
+ if (!existsSync31(rootDir)) {
16375
+ return agents;
16376
+ }
16377
+ function scanDirectory(dir) {
16378
+ try {
16379
+ const entries = readdirSync9(dir, { withFileTypes: true });
16380
+ for (const entry of entries) {
16381
+ const entryPath = join31(dir, entry.name);
16382
+ if (entry.isFile() && extname3(entry.name) === ".md") {
16383
+ const agent = parseAgentFile(entryPath, location);
16384
+ if (agent && !seen.has(agent.name)) {
16385
+ seen.add(agent.name);
16386
+ agents.push(agent);
16387
+ }
16388
+ } else if (entry.isDirectory()) {
16389
+ if (entry.name.startsWith(".") && !entry.name.startsWith(".claude") && !entry.name.startsWith(".cursor") && !entry.name.startsWith(".codex")) {
16390
+ continue;
16391
+ }
16392
+ const agent = parseAgentDir(entryPath, location);
16393
+ if (agent && !seen.has(agent.name)) {
16394
+ seen.add(agent.name);
16395
+ agents.push(agent);
16396
+ } else {
16397
+ scanDirectory(entryPath);
16398
+ }
16399
+ }
16400
+ }
16401
+ } catch {
16402
+ }
16403
+ }
16404
+ scanDirectory(rootDir);
16405
+ return agents;
16406
+ }
16407
+ function discoverAgentsFromPath(sourcePath, recursive = false, location = "project") {
16408
+ if (!existsSync31(sourcePath)) {
16409
+ return [];
16410
+ }
16411
+ const stats = statSync8(sourcePath);
16412
+ if (stats.isFile()) {
16413
+ if (extname3(sourcePath) === ".md") {
16414
+ const agent = parseAgentFile(sourcePath, location);
16415
+ return agent ? [agent] : [];
16416
+ }
16417
+ return [];
16418
+ }
16419
+ if (stats.isDirectory()) {
16420
+ if (recursive) {
16421
+ return discoverAgentsRecursive(sourcePath, location);
16422
+ }
16423
+ const agent = parseAgentDir(sourcePath, location);
16424
+ if (agent) {
16425
+ return [agent];
16426
+ }
16427
+ const agents = [];
16428
+ try {
16429
+ const entries = readdirSync9(sourcePath, { withFileTypes: true });
16430
+ for (const entry of entries) {
16431
+ const entryPath = join31(sourcePath, entry.name);
16432
+ if (entry.isFile() && extname3(entry.name) === ".md") {
16433
+ const a = parseAgentFile(entryPath, location);
16434
+ if (a) agents.push(a);
16435
+ } else if (entry.isDirectory()) {
16436
+ const a = parseAgentDir(entryPath, location);
16437
+ if (a) agents.push(a);
16438
+ }
16439
+ }
16440
+ } catch {
16441
+ }
16442
+ return agents;
16443
+ }
16444
+ return [];
16445
+ }
16371
16446
 
16372
16447
  // src/agents/translator.ts
16373
16448
  import { join as join32 } from "path";
@@ -16763,6 +16838,8 @@ export {
16763
16838
  detectSkillFormat,
16764
16839
  discoverAgents,
16765
16840
  discoverAgentsForAgent,
16841
+ discoverAgentsFromPath,
16842
+ discoverAgentsRecursive,
16766
16843
  discoverGlobalAgents,
16767
16844
  discoverSkills,
16768
16845
  dryRunExecutor,