unifai 2.0.1
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/LICENSE +21 -0
- package/README.md +106 -0
- package/dist/adapters/antigravity.d.ts +24 -0
- package/dist/adapters/antigravity.d.ts.map +1 -0
- package/dist/adapters/base.d.ts +60 -0
- package/dist/adapters/base.d.ts.map +1 -0
- package/dist/adapters/claude.d.ts +25 -0
- package/dist/adapters/claude.d.ts.map +1 -0
- package/dist/adapters/copilot.d.ts +25 -0
- package/dist/adapters/copilot.d.ts.map +1 -0
- package/dist/adapters/cursor.d.ts +30 -0
- package/dist/adapters/cursor.d.ts.map +1 -0
- package/dist/adapters/index.d.ts +39 -0
- package/dist/adapters/index.d.ts.map +1 -0
- package/dist/adapters/opencode.d.ts +25 -0
- package/dist/adapters/opencode.d.ts.map +1 -0
- package/dist/chunk-63EFN7CX.js +450 -0
- package/dist/cli.d.ts +3 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +14908 -0
- package/dist/cli.js.map +97 -0
- package/dist/commands/agent.d.ts +34 -0
- package/dist/commands/agent.d.ts.map +1 -0
- package/dist/commands/init.d.ts +16 -0
- package/dist/commands/init.d.ts.map +1 -0
- package/dist/commands/install.d.ts +8 -0
- package/dist/commands/install.d.ts.map +1 -0
- package/dist/commands/list.d.ts +8 -0
- package/dist/commands/list.d.ts.map +1 -0
- package/dist/commands/mcp.d.ts +40 -0
- package/dist/commands/mcp.d.ts.map +1 -0
- package/dist/commands/remove.d.ts +8 -0
- package/dist/commands/remove.d.ts.map +1 -0
- package/dist/commands/sync.d.ts +19 -0
- package/dist/commands/sync.d.ts.map +1 -0
- package/dist/commands/tui.d.ts +14 -0
- package/dist/commands/tui.d.ts.map +1 -0
- package/dist/data/prompts.d.ts +36 -0
- package/dist/data/prompts.d.ts.map +1 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +10648 -0
- package/dist/index.js.map +82 -0
- package/dist/openskill-ai.exe +0 -0
- package/dist/registry.d.ts +38 -0
- package/dist/registry.d.ts.map +1 -0
- package/dist/types/config.d.ts +103 -0
- package/dist/types/config.d.ts.map +1 -0
- package/dist/types/index.d.ts +8 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types.d.ts +23 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/utils/agents.d.ts +15 -0
- package/dist/utils/agents.d.ts.map +1 -0
- package/dist/utils/fs-helpers.d.ts +29 -0
- package/dist/utils/fs-helpers.d.ts.map +1 -0
- package/dist/utils/git.d.ts +23 -0
- package/dist/utils/git.d.ts.map +1 -0
- package/dist/utils/installer.d.ts +37 -0
- package/dist/utils/installer.d.ts.map +1 -0
- package/dist/utils/project-detector.d.ts +23 -0
- package/dist/utils/project-detector.d.ts.map +1 -0
- package/dist/utils/readme-generator.d.ts +9 -0
- package/dist/utils/readme-generator.d.ts.map +1 -0
- package/dist/utils/skills.d.ts +11 -0
- package/dist/utils/skills.d.ts.map +1 -0
- package/package.json +78 -0
- package/skills/skill-writer-skills/AGENTS.md +637 -0
- package/skills/skill-writer-skills/README.md +49 -0
- package/skills/skill-writer-skills/SKILL.md +97 -0
- package/skills/skill-writer-skills/metadata.json +17 -0
- package/skills/skill-writer-skills/references/common-pitfalls.md +291 -0
- package/skills/skill-writer-skills/references/core-principles.md +147 -0
- package/skills/skill-writer-skills/references/creation-process.md +250 -0
- package/skills/skill-writer-skills/references/design-patterns.md +300 -0
- package/skills/skill-writer-skills/references/skill-anatomy.md +174 -0
- package/skills/skill-writer-skills/references/validation-checklist.md +194 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Agent Command
|
|
3
|
+
*
|
|
4
|
+
* Manage AGENT.md / agent instructions across IDEs
|
|
5
|
+
*
|
|
6
|
+
* Commands:
|
|
7
|
+
* agent init - Interactive wizard to create agent config
|
|
8
|
+
* agent show - Display current agent configuration
|
|
9
|
+
* agent sync - Sync agent config to all detected IDEs
|
|
10
|
+
*/
|
|
11
|
+
export interface AgentCommandOptions {
|
|
12
|
+
global?: boolean;
|
|
13
|
+
ide?: string[];
|
|
14
|
+
yes?: boolean;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Agent init command - Interactive wizard
|
|
18
|
+
*/
|
|
19
|
+
export declare function agentInit(options: AgentCommandOptions): Promise<void>;
|
|
20
|
+
/**
|
|
21
|
+
* Agent show command - Display current configuration
|
|
22
|
+
*/
|
|
23
|
+
export declare function agentShow(options: AgentCommandOptions): Promise<void>;
|
|
24
|
+
/**
|
|
25
|
+
* Agent sync command - Sync to all IDEs
|
|
26
|
+
*/
|
|
27
|
+
export declare function agentSync(options: AgentCommandOptions): Promise<void>;
|
|
28
|
+
declare const _default: {
|
|
29
|
+
init: typeof agentInit;
|
|
30
|
+
show: typeof agentShow;
|
|
31
|
+
sync: typeof agentSync;
|
|
32
|
+
};
|
|
33
|
+
export default _default;
|
|
34
|
+
//# sourceMappingURL=agent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../../src/commands/agent.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAYH,MAAM,WAAW,mBAAmB;IAChC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,GAAG,CAAC,EAAE,MAAM,EAAE,CAAC;IACf,GAAG,CAAC,EAAE,OAAO,CAAC;CACjB;AAED;;GAEG;AACH,wBAAsB,SAAS,CAAC,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,IAAI,CAAC,CA8L3E;AAED;;GAEG;AACH,wBAAsB,SAAS,CAAC,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,IAAI,CAAC,CAsC3E;AAED;;GAEG;AACH,wBAAsB,SAAS,CAAC,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,IAAI,CAAC,CA2E3E;;;;;;AA+CD,wBAIE"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Init Command
|
|
3
|
+
* Initialize skills with smart project detection
|
|
4
|
+
*/
|
|
5
|
+
export interface InitOptions {
|
|
6
|
+
yes?: boolean;
|
|
7
|
+
source?: string;
|
|
8
|
+
agent?: string[];
|
|
9
|
+
global?: boolean;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Initialize skills with smart detection
|
|
13
|
+
*/
|
|
14
|
+
export declare function initCommand(options: InitOptions): Promise<void>;
|
|
15
|
+
export default initCommand;
|
|
16
|
+
//# sourceMappingURL=init.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../src/commands/init.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAWH,MAAM,WAAW,WAAW;IAC1B,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED;;GAEG;AACH,wBAAsB,WAAW,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAgGrE;AAuGD,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"install.d.ts","sourceRoot":"","sources":["../../src/commands/install.ts"],"names":[],"mappings":"AAYA,MAAM,WAAW,cAAc;IAC7B,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED;;GAEG;AACH,wBAAsB,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CAgF9F"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../src/commands/list.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,WAAW;IAC1B,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED;;GAEG;AACH,wBAAsB,UAAU,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CA6CpE"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MCP Command
|
|
3
|
+
*
|
|
4
|
+
* Manage Model Context Protocol server configurations
|
|
5
|
+
*
|
|
6
|
+
* Commands:
|
|
7
|
+
* mcp init - Initialize MCP configuration
|
|
8
|
+
* mcp add - Add an MCP server
|
|
9
|
+
* mcp list - List configured MCP servers
|
|
10
|
+
* mcp sync - Sync MCP config to all IDEs
|
|
11
|
+
*/
|
|
12
|
+
export interface MCPCommandOptions {
|
|
13
|
+
global?: boolean;
|
|
14
|
+
ide?: string[];
|
|
15
|
+
yes?: boolean;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* MCP init command
|
|
19
|
+
*/
|
|
20
|
+
export declare function mcpInit(options: MCPCommandOptions): Promise<void>;
|
|
21
|
+
/**
|
|
22
|
+
* MCP add command
|
|
23
|
+
*/
|
|
24
|
+
export declare function mcpAdd(options: MCPCommandOptions): Promise<void>;
|
|
25
|
+
/**
|
|
26
|
+
* MCP list command
|
|
27
|
+
*/
|
|
28
|
+
export declare function mcpList(options: MCPCommandOptions): Promise<void>;
|
|
29
|
+
/**
|
|
30
|
+
* MCP sync command
|
|
31
|
+
*/
|
|
32
|
+
export declare function mcpSync(options: MCPCommandOptions): Promise<void>;
|
|
33
|
+
declare const _default: {
|
|
34
|
+
init: typeof mcpInit;
|
|
35
|
+
add: typeof mcpAdd;
|
|
36
|
+
list: typeof mcpList;
|
|
37
|
+
sync: typeof mcpSync;
|
|
38
|
+
};
|
|
39
|
+
export default _default;
|
|
40
|
+
//# sourceMappingURL=mcp.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mcp.d.ts","sourceRoot":"","sources":["../../src/commands/mcp.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAYH,MAAM,WAAW,iBAAiB;IAC9B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,GAAG,CAAC,EAAE,MAAM,EAAE,CAAC;IACf,GAAG,CAAC,EAAE,OAAO,CAAC;CACjB;AAOD;;GAEG;AACH,wBAAsB,OAAO,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CAmCvE;AAED;;GAEG;AACH,wBAAsB,MAAM,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CAuNtE;AAED;;GAEG;AACH,wBAAsB,OAAO,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CAkEvE;AAED;;GAEG;AACH,wBAAsB,OAAO,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CA4GvE;;;;;;;AAED,wBAKE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"remove.d.ts","sourceRoot":"","sources":["../../src/commands/remove.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,aAAa;IAC5B,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED;;GAEG;AACH,wBAAsB,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC,CAiD5F"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sync Command
|
|
3
|
+
*
|
|
4
|
+
* Universal sync command to synchronize all configurations
|
|
5
|
+
* across all detected AI IDEs.
|
|
6
|
+
*/
|
|
7
|
+
export interface SyncCommandOptions {
|
|
8
|
+
global?: boolean;
|
|
9
|
+
agent?: boolean;
|
|
10
|
+
rules?: boolean;
|
|
11
|
+
mcp?: boolean;
|
|
12
|
+
ide?: string[];
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Universal sync command
|
|
16
|
+
*/
|
|
17
|
+
export declare function syncCommand(options: SyncCommandOptions): Promise<void>;
|
|
18
|
+
export default syncCommand;
|
|
19
|
+
//# sourceMappingURL=sync.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sync.d.ts","sourceRoot":"","sources":["../../src/commands/sync.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAUH,MAAM,WAAW,kBAAkB;IAC/B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,EAAE,CAAC;CAClB;AAED;;GAEG;AACH,wBAAsB,WAAW,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC,CAoP5E;AAmDD,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TUI Command
|
|
3
|
+
* Interactive terminal UI for managing skills
|
|
4
|
+
*/
|
|
5
|
+
interface TuiOptions {
|
|
6
|
+
source?: string;
|
|
7
|
+
global?: boolean;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Interactive TUI for managing skills
|
|
11
|
+
*/
|
|
12
|
+
export declare function tuiCommand(options: TuiOptions): Promise<void>;
|
|
13
|
+
export default tuiCommand;
|
|
14
|
+
//# sourceMappingURL=tui.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tui.d.ts","sourceRoot":"","sources":["../../src/commands/tui.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAaH,UAAU,UAAU;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAUD;;GAEG;AACH,wBAAsB,UAAU,CAAC,OAAO,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,CA6DnE;AA8QD,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Default Prompt Templates
|
|
3
|
+
*
|
|
4
|
+
* Standard intro paragraphs and templates that get included in generated
|
|
5
|
+
* agent configurations and rules files. Users can copy-paste and customize.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Default intro paragraph for AGENTS.md / CLAUDE.md files
|
|
9
|
+
*/
|
|
10
|
+
export declare const DEFAULT_AGENT_INTRO = "You are an expert AI coding assistant working on this project. Follow these instructions carefully to provide the best assistance.\n\n## Your Behavior\n\n- **Be precise**: Write clean, efficient code following the project's conventions\n- **Be proactive**: Suggest improvements and catch potential issues early\n- **Be thorough**: Consider edge cases, error handling, and testing\n- **Be concise**: Explain only what's necessary, focus on the code\n- **Ask clarifying questions** when requirements are ambiguous\n\n## When Writing Code\n\n1. Follow the existing code style and patterns\n2. Add appropriate error handling\n3. Include helpful comments for complex logic\n4. Consider performance implications\n5. Write testable code\n\n## When Reviewing Code\n\n1. Check for bugs and edge cases\n2. Suggest performance improvements\n3. Ensure proper error handling\n4. Verify code follows project conventions\n";
|
|
11
|
+
/**
|
|
12
|
+
* Default rules that should be included in every project
|
|
13
|
+
*/
|
|
14
|
+
export declare const DEFAULT_RULES: string[];
|
|
15
|
+
/**
|
|
16
|
+
* Technology-specific prompts
|
|
17
|
+
*/
|
|
18
|
+
export declare const TECH_PROMPTS: Record<string, string>;
|
|
19
|
+
/**
|
|
20
|
+
* Get combined prompt for a tech stack
|
|
21
|
+
*/
|
|
22
|
+
export declare function getPromptForTechStack(techStack: string[]): string;
|
|
23
|
+
/**
|
|
24
|
+
* MCP instruction template
|
|
25
|
+
*/
|
|
26
|
+
export declare const MCP_INTRO = "\n## Available Tools (MCP)\n\nYou have access to the following tools through the Model Context Protocol.\nUse them when appropriate to assist with tasks:\n";
|
|
27
|
+
/**
|
|
28
|
+
* Generate a complete agent intro with optional customizations
|
|
29
|
+
*/
|
|
30
|
+
export declare function generateAgentIntro(options?: {
|
|
31
|
+
projectName?: string;
|
|
32
|
+
description?: string;
|
|
33
|
+
techStack?: string[];
|
|
34
|
+
includeMCP?: boolean;
|
|
35
|
+
}): string;
|
|
36
|
+
//# sourceMappingURL=prompts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prompts.d.ts","sourceRoot":"","sources":["../../src/data/prompts.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;GAEG;AACH,eAAO,MAAM,mBAAmB,g5BAwB/B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa,UAMzB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAkD/C,CAAC;AAEF;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,MAAM,EAAE,GAAG,MAAM,CAWjE;AAED;;GAEG;AACH,eAAO,MAAM,SAAS,gKAKrB,CAAC;AAEF;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,CAAC,EAAE;IACzC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;CACxB,GAAG,MAAM,CAgCT"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Agent Skills - Main Entry Point
|
|
3
|
+
*
|
|
4
|
+
* Programmatic API for agent-skills package
|
|
5
|
+
*/
|
|
6
|
+
export { installSkills, InstallOptions } from './commands/install.js';
|
|
7
|
+
export { listSkills, ListOptions } from './commands/list.js';
|
|
8
|
+
export { removeSkills, RemoveOptions } from './commands/remove.js';
|
|
9
|
+
export { initCommand, type InitOptions } from './commands/init.js';
|
|
10
|
+
export { getAllSkills, getSkill, skillExists, SkillInfo, SkillWithId, SkillRegistry } from './registry.js';
|
|
11
|
+
export { parseSource, cloneRepo, cleanupTempDir } from './utils/git.js';
|
|
12
|
+
export { discoverSkills, getSkillDisplayName } from './utils/skills.js';
|
|
13
|
+
export { agents, detectInstalledAgents, getAgentConfig } from './utils/agents.js';
|
|
14
|
+
export { installSkillForAgent, isSkillInstalled, getInstallPath } from './utils/installer.js';
|
|
15
|
+
export type { Skill, AgentType, AgentConfig, ParsedSource } from './types.js';
|
|
16
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACtE,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACnE,OAAO,EAAE,WAAW,EAAE,KAAK,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACnE,OAAO,EACL,YAAY,EACZ,QAAQ,EACR,WAAW,EACX,SAAS,EACT,WAAW,EACX,aAAa,EACd,MAAM,eAAe,CAAC;AAGvB,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGxE,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAGxE,OAAO,EAAE,MAAM,EAAE,qBAAqB,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAGlF,OAAO,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAG9F,YAAY,EAAE,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC"}
|