@jayyuen66/dsh-dir-prep-organize 0.1.0 → 0.1.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.
@@ -0,0 +1,72 @@
1
+ export interface TemplateEntry {
2
+ id: string;
3
+ name: string;
4
+ /** 一句话专长/适用场景(下拉 item title 展示;对齐角色 frontmatter description)。 */
5
+ description: string;
6
+ text: string;
7
+ /** 分组标签(下拉按此分组渲染;空=通用)。导入角色时取所属部门的固定中文标签。 */
8
+ group: string;
9
+ /** 角色视觉标记(下拉 item 前缀);空=不显示。 */
10
+ emoji: string;
11
+ }
12
+ /** 角色正文提炼/「按角色整理」上下文:不设字符上限(用户拍板,
13
+ * 上下文完整性优先;模型 context 超限由模型报错提示用户自行处理)。 */
14
+ /** 仓库目录名 → 下拉分组标签的**唯一**导出点在 `./group-labels.generated.ts`(表源 =
15
+ * scripts/gen-defaults-lib.mjs,键序 = 下拉分组展示序),本文件不再同名 re-export:
16
+ * 实测同名两处导出正是 fallow `duplicate_export`(severity=error)报出来的那一条,
17
+ * 而"两份名字保持同步"的纪律并不由 re-export 保证。表体仍是生成物;host 半引本文件的
18
+ * groupLabelOf/parseAgentFrontmatter,精选集(现 640KB)也由 host 半引走、经
19
+ * default-templates 端点按需下发,client 半不打包它。 */
20
+ /** 仓库目录名 → 分组标签(groupLabelOf(engineering) === "工程";未收录回落目录名)。
21
+ * 必须只认**自有属性**:`AGENT_DIR_GROUP_LABELS["constructor"]` 会命中原型上的
22
+ * function(`?? dirName` 不触发)→ TemplateEntry.group 拿到函数、JSON.stringify
23
+ * 静默丢掉整个 group 键(探针:{"id":"a"});"__proto__" 同理返回 {}。 */
24
+ export declare function groupLabelOf(dirName: string): string;
25
+ /** 角色 .md 解析结果(frontmatter 的 name/description/emoji + 去除头部围栏的正文)。 */
26
+ export interface AgentFileInfo {
27
+ name: string;
28
+ description: string;
29
+ emoji: string;
30
+ body: string;
31
+ }
32
+ /**
33
+ * 解析 agency-agents-zh 风格角色文件:首行 `---` + 键值对 frontmatter + 正文。
34
+ *
35
+ * - 无 frontmatter / 缺 `name` 键 / name 为空 → undefined(非角色文件,导入时跳过);
36
+ * - 键值对格式宽松:`key: value`,value 可带引号或裸值,取首个同名键;
37
+ * - 正文 = 第二个 `---` 围栏之后的内容(trim),与 condenseRoleBody 组合产出模板正文;
38
+ * - 纯字符串处理,无 YAML 依赖,确定性可测。
39
+ */
40
+ export declare function parseAgentFrontmatter(text: string): AgentFileInfo | undefined;
41
+ /**
42
+ * 角色正文提炼(导入 / 「按角色整理」共用):取叙述主干、去代码围栏。
43
+ *
44
+ * 规则(确定性,测试锁死):
45
+ * - ``` 围栏行整体剔除(围栏内容多为长代码样例,对角色语境价值低);
46
+ * - 行内反引号一并剔除——沿用"正文不含反引号、插入不破坏 markdown 围栏"不变式;
47
+ * - 不设字符上限(用户拍板):全量保留叙述内容,避免截断影响
48
+ * 「以角色整理」的上下文完整性;模型 context 超限由模型报错提示用户自行处理;
49
+ * - 结果 trim;空正文(全围栏/全空白)→ 空串。
50
+ */
51
+ export declare function condenseRoleBody(body: string): string;
52
+ /**
53
+ * 导入条目并入现有草稿:与既有 id 碰撞时确定性改写(追加 `-i` 直到唯一)。
54
+ * 返回新数组(不改输入),保证 pre-save 阶段 React key 唯一(保存前的 id 去重,
55
+ * sanitizeTemplateList 的确定性补 id 只兜底缺失/空,不负责碰撞改写)。
56
+ */
57
+ export declare function mergeImportedTemplates(existing: readonly TemplateEntry[], incoming: readonly TemplateEntry[]): TemplateEntry[];
58
+ /** 内置默认模板(独立开发者精选角色集,生成自插件内置 agents/ 目录)。
59
+ * host 作为 settings base 下发;client 在快照缺 templates 字段时兜底使用
60
+ * (不猜测快照是否合并 base,两种语义下行为都正确)。
61
+ * 全量角色可经设置页「导入角色」导入(路径留空 = 导入内置 agents/ 全部;显式路径
62
+ * 受 host 的「cwd 内 + 内置角色目录 allowlist」策略约束)。 */
63
+ export { DEFAULT_TEMPLATES } from "./default-templates.generated.js";
64
+ export declare function sanitizeTemplateList(raw: unknown): TemplateEntry[];
65
+ /** 任意来源(settings 快照 / 设置卡草稿)→ 合法的「导入允许目录」列表(纯函数)。
66
+ * host 的导入策略是「会话 cwd + 内置角色库 + importAllowRoots」,绝对路径默认拒绝,
67
+ * 这里登记的每一项都是**放一个读盘口子**,故:
68
+ * - 非数组 → [](未设置 = 一条都不登记,不是"全放行");
69
+ * - 非字符串 / trim 后为空 → 丢弃(空串在 host 侧 path.resolve 会落到进程 cwd,
70
+ * 绝不能让它变成一个隐式允许根);
71
+ * - 去重(同一目录登记两次没有额外语义,界面上也不该出现两行)。 */
72
+ export declare function sanitizeAllowRoots(raw: unknown): string[];
@@ -0,0 +1,199 @@
1
+ import type { TranslateNS as OfficialTranslateNS } from "@deepseek-ai/dsh-client-ui-slots";
2
+ import type { MessagesCatalog } from "@jayyuen66/dsh-plugin-shared/lib/locale";
3
+ /** 本包设置卡产出的全部界面文案。 */
4
+ export interface UiMessages {
5
+ /** 卡片标题(设置页插件列表里的那一行)。 */
6
+ readonly cardTitle: string;
7
+ /** 卡片副标题:一句话说明这张卡管什么。 */
8
+ readonly cardDescription: string;
9
+ /** 设置源可写位为 false 时的状态条。 */
10
+ readonly statusReadOnly: string;
11
+ /** 设置源尚未就绪时的状态条。 */
12
+ readonly statusNotReady: string;
13
+ /** 新增模板按钮。 */
14
+ readonly addTemplate: string;
15
+ /** 保存按钮 title(有未保存改动)。 */
16
+ readonly saveTitleDirty: string;
17
+ /** 保存按钮 title(无未保存改动)。 */
18
+ readonly saveTitleClean: string;
19
+ /** 保存按钮(写入中)。 */
20
+ readonly saving: string;
21
+ /** 保存按钮(空闲态);同时充当回执文本里的动作名。 */
22
+ readonly save: string;
23
+ /** 撤销按钮(丢弃本地草稿)。 */
24
+ readonly revert: string;
25
+ /** 恢复默认按钮 title(说明影响面与两步确认)。 */
26
+ readonly resetTitle: string;
27
+ /** 恢复默认按钮(已进入确认态)。 */
28
+ readonly resetConfirm: string;
29
+ /** 恢复默认按钮(空闲态);同时充当回执文本里的动作名。 */
30
+ readonly resetDefault: string;
31
+ /** 卡底的保存语义说明。 */
32
+ readonly footHint: string;
33
+ /** 保存失败前缀(后接错误摘要)。 */
34
+ readonly saveFailed: string;
35
+ /** 新增行的默认名称(整句模板)。 */
36
+ readonly newTemplateName: string;
37
+ /** 新增行的默认正文(提示用户改写,落盘后即为数据)。 */
38
+ readonly newTemplateText: string;
39
+ /** 写入回执不可确认(宿主未回读成功)。 */
40
+ readonly persistUnconfirmed: string;
41
+ /** 写入回执未生效(宿主拒绝写入,带 revision)。 */
42
+ readonly persistRejected: string;
43
+ /** 行内视觉标记输入框的 aria-label。 */
44
+ readonly rowAriaEmoji: string;
45
+ /** 行内视觉标记输入框的 title。 */
46
+ readonly rowEmojiTitle: string;
47
+ /** 行内名称输入框的 placeholder。 */
48
+ readonly rowPlaceholderName: string;
49
+ /** 行内名称输入框的 aria-label。 */
50
+ readonly rowAriaName: string;
51
+ /** 行内分组输入框的 placeholder。 */
52
+ readonly rowPlaceholderGroup: string;
53
+ /** 行内分组输入框的 aria-label。 */
54
+ readonly rowAriaGroup: string;
55
+ /** 行内分组输入框的 title。 */
56
+ readonly rowGroupTitle: string;
57
+ /** 行内删除按钮的 title。 */
58
+ readonly rowDeleteTitle: string;
59
+ /** 行内删除按钮的文字。 */
60
+ readonly rowDelete: string;
61
+ /** 行内一句话介绍输入框的 placeholder。 */
62
+ readonly rowPlaceholderDescription: string;
63
+ /** 行内一句话介绍输入框的 aria-label。 */
64
+ readonly rowAriaDescription: string;
65
+ /** 行内正文文本域的 placeholder。 */
66
+ readonly rowPlaceholderText: string;
67
+ /** 行内正文文本域的 aria-label。 */
68
+ readonly rowAriaText: string;
69
+ /** 导入回执整体不是对象时的错误。 */
70
+ readonly importFailedUnknown: string;
71
+ /** 导入命中 0 条时的提示。 */
72
+ readonly importEmpty: string;
73
+ /** 导入成功(路径留空 = 内置全量)。 */
74
+ readonly importAllDone: string;
75
+ /** 导入成功(显式路径)。 */
76
+ readonly importFromDone: string;
77
+ /** 导入路径输入框的 placeholder。 */
78
+ readonly importPlaceholder: string;
79
+ /** 导入路径输入框的 aria-label。 */
80
+ readonly importAriaPath: string;
81
+ /** 导入按钮的 title(两种路径语义)。 */
82
+ readonly importBtnTitle: string;
83
+ /** 导入按钮(请求中)。 */
84
+ readonly importing: string;
85
+ /** 导入按钮(空闲态)。 */
86
+ readonly importRoles: string;
87
+ /** 导入失败前缀(后接错误摘要)。 */
88
+ readonly importErrorPrefix: string;
89
+ /** 导入面板的规则说明(允许根、扫描层级、frontmatter 要求)。 */
90
+ readonly importHint: string;
91
+ /** 跳过计数:更深层未扫描。 */
92
+ readonly skipDeeper: string;
93
+ /** 跳过计数:超字节上限。 */
94
+ readonly skipTooLarge: string;
95
+ /** 跳过计数:读取失败。 */
96
+ readonly skipUnreadable: string;
97
+ /** 跳过计数:非角色文件。 */
98
+ readonly skipUnnamed: string;
99
+ /** 跳过计数整句的外层括号。 */
100
+ readonly skipSummary: string;
101
+ /** 跳过计数各项的分隔符。 */
102
+ readonly skipSeparator: string;
103
+ /** 允许目录面板标题。 */
104
+ readonly rootsHeading: string;
105
+ /** 单行允许目录输入框的 aria-label。 */
106
+ readonly rootsAriaRow: string;
107
+ /** 单行允许目录输入框的 title。 */
108
+ readonly rootsRowTitle: string;
109
+ /** 单行移除按钮的 title。 */
110
+ readonly rootsRemoveTitle: string;
111
+ /** 单行移除按钮的文字。 */
112
+ readonly rootsRemove: string;
113
+ /** 新增行输入框的 placeholder。 */
114
+ readonly rootsAddPlaceholder: string;
115
+ /** 新增行输入框的 aria-label。 */
116
+ readonly rootsAddAria: string;
117
+ /** 新增行按钮的 title。 */
118
+ readonly rootsAddTitle: string;
119
+ /** 新增行按钮的文字。 */
120
+ readonly rootsAdd: string;
121
+ /** 允许目录面板的规则说明(绝对路径默认拒绝)。 */
122
+ readonly rootsHint: string;
123
+ /** dock 注册项 label:「整理」按钮。 */
124
+ readonly dockOrganizeEntry: string;
125
+ /** dock 注册项 label:「模板」按钮。 */
126
+ readonly dockTemplatesEntry: string;
127
+ /** 「整理」主键(空闲态)。 */
128
+ readonly organizeIdle: string;
129
+ /** 「整理」主键(请求中)。 */
130
+ readonly organizeLoading: string;
131
+ /** 「整理」主键(失败闪烁)。 */
132
+ readonly organizeFailedShort: string;
133
+ /** 「整理」按钮 title(空闲态)。 */
134
+ readonly organizeIdleTitle: string;
135
+ /** 「整理」失败时 title 前缀(后接错误摘要)。 */
136
+ readonly organizeFailedTitle: string;
137
+ /** ▾ 角色菜单按钮的 aria-label。 */
138
+ readonly organizeCaretAria: string;
139
+ /** ▾ 角色菜单按钮的 title。 */
140
+ readonly organizeCaretTitle: string;
141
+ /** 「整理」主键的 aria-label。 */
142
+ readonly organizeMainAria: string;
143
+ /** 角色菜单首项:直接整理。 */
144
+ readonly organizeDirectItem: string;
145
+ /** 角色菜单空态(没有任何模板)。 */
146
+ readonly organizeNoTemplates: string;
147
+ /** 角色菜单条目({name} = 模板名)。 */
148
+ readonly organizeRoleItem: string;
149
+ /** 整理成功但输入框动作缺失时抛出的错误(会闪烁在按钮上)。 */
150
+ readonly organizeWriteBackUnavailable: string;
151
+ /** 「模板」按钮 title(可写时)。 */
152
+ readonly templatesIdleTitle: string;
153
+ /** 「模板」按钮 title(输入框动作缺失)。 */
154
+ readonly templatesBrokenTitle: string;
155
+ /** 空分组名的归组名。 */
156
+ readonly templatesGroupCommon: string;
157
+ /** 「模板」按钮的 aria-label。 */
158
+ readonly templatesAria: string;
159
+ /** 「模板」下拉空态(用户删光了列表)。 */
160
+ readonly templatesEmptyHint: string;
161
+ /** 内置精选表在 host 侧、首次打开菜单/进卡片时才拉:拉取中的占位行。 */
162
+ readonly builtinLoading: string;
163
+ /** 内置表拉取失败(含 {message}):静默显示空列表会被当成"内置角色没了"。 */
164
+ readonly builtinFailed: string;
165
+ /** 内置表拉取失败后的重试按钮。 */
166
+ readonly builtinRetry: string;
167
+ }
168
+ /**
169
+ * 本包的文案命名空间 merge 进官方的 `LocaleNamespaceMap`(installed
170
+ * `dsh-client-ui-slots/lib/types/index.d.ts:33`「Dictionary owners extend via declaration
171
+ * merging (exactly like SlotMap)」)。这不是美化:不 merge 时 `ctx.locale.bind(NS)` 只能
172
+ * 落到官方那条**未类型化**重载(返回 `Translate<string>`),卡片要的窄键集 `t` 就无官方
173
+ * 来源,本地只好手写一份同构签名(就是被这一段替换掉的旧版本)。
174
+ * ⚠ interface 键位必须是字面量,故用下面的等式常量把它与 client-entry.ts 的 `NS` 钉住。
175
+ */
176
+ declare module "@deepseek-ai/dsh-client-ui-slots" {
177
+ interface LocaleNamespaceMap {
178
+ /** 本包设置卡的全部界面文案键。 */
179
+ "dir-prep-organize": keyof UiMessages;
180
+ }
181
+ }
182
+ /** 编译期契约:merge 里写死的命名空间键(`Translate` 由它取键集)就是卡片的条目 id。 */
183
+ declare const LOCALE_NS_KEY: "dir-prep-organize";
184
+ /**
185
+ * 本源只以**类型**形态对外流通:`client-entry.ts` 的 `const NS: LocaleNs = "dir-prep-organize"` 把条目
186
+ * id 钉在本源上(分叉即编译期红),而产物漂移针仍要按字面量形状从 bundle 里抓 `NS`,所以那里
187
+ * 保留字面量、只加类型标注——值导出不必存在(用例侧同理:要断言运行时那串就写字面量)。
188
+ */
189
+ export type LocaleNs = typeof LOCALE_NS_KEY;
190
+ /**
191
+ * 卡片取文案的函数形状:官方 `TranslateNS<N> = Translate<LocaleKeysOf<N>>`(installed
192
+ * `dsh-client-ui-slots/lib/types/index.d.ts:67`,而 `Translate<K> =
193
+ * (key: K, params?: Record<string, unknown>) => string`,同文件 :45)。函数面归官方,
194
+ * 键集就是上面 merge 的 `keyof UiMessages`(外加官方 `LocaleKeysOf` 一并放行的
195
+ * `common` 命名空间键——那是宿主查不到键时的回落面,运行时行为见其 `lookup`)。
196
+ */
197
+ export type Translate = OfficialTranslateNS<typeof LOCALE_NS_KEY>;
198
+ export declare const UI_MESSAGES: MessagesCatalog<UiMessages>;
199
+ export {};
@@ -1,174 +0,0 @@
1
- # 🔌 Integrations
2
-
3
- This directory contains The Agency integrations and converted formats for
4
- supported agentic coding tools.
5
-
6
- ## Supported Tools
7
-
8
- - **[Claude Code](#claude-code)** — `.md` agents, use the repo directly
9
- - **[GitHub Copilot](#github-copilot)** — `.md` agents, use the repo directly
10
- - **[Antigravity](#antigravity)** — `SKILL.md` per agent in `antigravity/`
11
- - **[Gemini CLI](#gemini-cli)** — extension + `SKILL.md` files in `gemini-cli/`
12
- - **[OpenCode](#opencode)** — `.md` agent files in `opencode/`
13
- - **[OpenClaw](#openclaw)** — `SOUL.md` + `AGENTS.md` + `IDENTITY.md` workspaces
14
- - **[Cursor](#cursor)** — `.mdc` rule files in `cursor/`
15
- - **[Aider](#aider)** — `CONVENTIONS.md` in `aider/`
16
- - **[Windsurf](#windsurf)** — `.windsurfrules` in `windsurf/`
17
-
18
- ## Quick Install
19
-
20
- ```bash
21
- # Install for all detected tools automatically
22
- ./scripts/install.sh
23
-
24
- # Install a specific home-scoped tool
25
- ./scripts/install.sh --tool antigravity
26
- ./scripts/install.sh --tool copilot
27
- ./scripts/install.sh --tool openclaw
28
- ./scripts/install.sh --tool claude-code
29
-
30
- # Gemini CLI needs generated integration files on a fresh clone
31
- ./scripts/convert.sh --tool gemini-cli
32
- ./scripts/install.sh --tool gemini-cli
33
- ```
34
-
35
- For project-scoped tools such as OpenCode, Cursor, Aider, and Windsurf, run
36
- the installer from your target project root as shown in the tool-specific
37
- sections below.
38
-
39
- ## Regenerating Integration Files
40
-
41
- If you add or modify agents, regenerate all integration files:
42
-
43
- ```bash
44
- ./scripts/convert.sh
45
- ```
46
-
47
- ---
48
-
49
- ## Claude Code
50
-
51
- The Agency was originally designed for Claude Code. Agents work natively
52
- without conversion.
53
-
54
- ```bash
55
- cp -r <category>/*.md ~/.claude/agents/
56
- # or install everything at once:
57
- ./scripts/install.sh --tool claude-code
58
- ```
59
-
60
- See [claude-code/README.md](claude-code/README.md) for details.
61
-
62
- ---
63
-
64
- ## GitHub Copilot
65
-
66
- The Agency also works natively with GitHub Copilot. Agents can be copied
67
- directly into `~/.github/agents/` and `~/.copilot/agents/` without conversion.
68
-
69
- ```bash
70
- ./scripts/install.sh --tool copilot
71
- ```
72
-
73
- See [github-copilot/README.md](github-copilot/README.md) for details.
74
-
75
- ---
76
-
77
- ## Antigravity
78
-
79
- Skills are installed to `~/.gemini/antigravity/skills/`. Each agent becomes
80
- a separate skill prefixed with `agency-` to avoid naming conflicts.
81
-
82
- ```bash
83
- ./scripts/install.sh --tool antigravity
84
- ```
85
-
86
- See [antigravity/README.md](antigravity/README.md) for details.
87
-
88
- ---
89
-
90
- ## Gemini CLI
91
-
92
- Agents are packaged as a Gemini CLI extension with individual skill files.
93
- The extension is installed to `~/.gemini/extensions/agency-agents/`.
94
- Because the Gemini manifest and skill folders are generated artifacts, run
95
- `./scripts/convert.sh --tool gemini-cli` before installing from a fresh clone.
96
-
97
- ```bash
98
- ./scripts/convert.sh --tool gemini-cli
99
- ./scripts/install.sh --tool gemini-cli
100
- ```
101
-
102
- See [gemini-cli/README.md](gemini-cli/README.md) for details.
103
-
104
- ---
105
-
106
- ## OpenCode
107
-
108
- Each agent becomes a project-scoped `.md` file in `.opencode/agents/`.
109
-
110
- ```bash
111
- cd /your/project && /path/to/agency-agents/scripts/install.sh --tool opencode
112
- ```
113
-
114
- See [opencode/README.md](opencode/README.md) for details.
115
-
116
- ---
117
-
118
- ## OpenClaw
119
-
120
- Each agent becomes an OpenClaw workspace containing `SOUL.md`, `AGENTS.md`,
121
- and `IDENTITY.md`.
122
-
123
- Before installing, generate the OpenClaw workspaces:
124
-
125
- ```bash
126
- ./scripts/convert.sh --tool openclaw
127
- ```
128
-
129
- Then install them:
130
-
131
- ```bash
132
- ./scripts/install.sh --tool openclaw
133
- ```
134
-
135
- See [openclaw/README.md](openclaw/README.md) for details.
136
-
137
- ---
138
-
139
- ## Cursor
140
-
141
- Each agent becomes a `.mdc` rule file. Rules are project-scoped — run the
142
- installer from your project root.
143
-
144
- ```bash
145
- cd /your/project && /path/to/agency-agents/scripts/install.sh --tool cursor
146
- ```
147
-
148
- See [cursor/README.md](cursor/README.md) for details.
149
-
150
- ---
151
-
152
- ## Aider
153
-
154
- All agents are consolidated into a single `CONVENTIONS.md` file that Aider
155
- reads automatically when present in your project root.
156
-
157
- ```bash
158
- cd /your/project && /path/to/agency-agents/scripts/install.sh --tool aider
159
- ```
160
-
161
- See [aider/README.md](aider/README.md) for details.
162
-
163
- ---
164
-
165
- ## Windsurf
166
-
167
- All agents are consolidated into a single `.windsurfrules` file for your
168
- project root.
169
-
170
- ```bash
171
- cd /your/project && /path/to/agency-agents/scripts/install.sh --tool windsurf
172
- ```
173
-
174
- See [windsurf/README.md](windsurf/README.md) for details.
@@ -1,38 +0,0 @@
1
- # Aider Integration
2
-
3
- All 61 Agency agents are consolidated into a single `CONVENTIONS.md` file.
4
- Aider reads this file automatically when it's present in your project root.
5
-
6
- ## Install
7
-
8
- ```bash
9
- # Run from your project root
10
- cd /your/project
11
- /path/to/agency-agents/scripts/install.sh --tool aider
12
- ```
13
-
14
- ## Activate an Agent
15
-
16
- In your Aider session, reference the agent by name:
17
-
18
- ```
19
- Use the Frontend Developer agent to refactor this component.
20
- ```
21
-
22
- ```
23
- Apply the Reality Checker agent to verify this is production-ready.
24
- ```
25
-
26
- ## Manual Usage
27
-
28
- You can also pass the conventions file directly:
29
-
30
- ```bash
31
- aider --read CONVENTIONS.md
32
- ```
33
-
34
- ## Regenerate
35
-
36
- ```bash
37
- ./scripts/convert.sh --tool aider
38
- ```
@@ -1,49 +0,0 @@
1
- # Antigravity Integration
2
-
3
- Installs all 61 Agency agents as Antigravity skills. Each agent is prefixed
4
- with `agency-` to avoid conflicts with existing skills.
5
-
6
- ## Install
7
-
8
- ```bash
9
- ./scripts/install.sh --tool antigravity
10
- ```
11
-
12
- This copies files from `integrations/antigravity/` to
13
- `~/.gemini/antigravity/skills/`.
14
-
15
- ## Activate a Skill
16
-
17
- In Antigravity, activate an agent by its slug:
18
-
19
- ```
20
- Use the agency-frontend-developer skill to review this component.
21
- ```
22
-
23
- Available slugs follow the pattern `agency-<agent-name>`, e.g.:
24
- - `agency-frontend-developer`
25
- - `agency-backend-architect`
26
- - `agency-reality-checker`
27
- - `agency-growth-hacker`
28
-
29
- ## Regenerate
30
-
31
- After modifying agents, regenerate the skill files:
32
-
33
- ```bash
34
- ./scripts/convert.sh --tool antigravity
35
- ```
36
-
37
- ## File Format
38
-
39
- Each skill is a `SKILL.md` file with Antigravity-compatible frontmatter:
40
-
41
- ```yaml
42
- ---
43
- name: agency-frontend-developer
44
- description: Expert frontend developer specializing in...
45
- risk: low
46
- source: community
47
- date_added: '2026-03-08'
48
- ---
49
- ```
@@ -1,31 +0,0 @@
1
- # Claude Code Integration
2
-
3
- The Agency was built for Claude Code. No conversion needed — agents work
4
- natively with the existing `.md` + YAML frontmatter format.
5
-
6
- ## Install
7
-
8
- ```bash
9
- # Copy all agents to your Claude Code agents directory
10
- ./scripts/install.sh --tool claude-code
11
-
12
- # Or manually copy a category
13
- cp engineering/*.md ~/.claude/agents/
14
- ```
15
-
16
- ## Activate an Agent
17
-
18
- In any Claude Code session, reference an agent by name:
19
-
20
- ```
21
- Activate Frontend Developer and help me build a React component.
22
- ```
23
-
24
- ```
25
- Use the Reality Checker agent to verify this feature is production-ready.
26
- ```
27
-
28
- ## Agent Directory
29
-
30
- Agents are organized into divisions. See the [main README](../../README.md) for
31
- the full current roster.
@@ -1,55 +0,0 @@
1
- # Cursor Integration
2
-
3
- Converts all 180 Agency agents into Cursor `.mdc` rule files. Rules are
4
- **project-scoped** — install them from your project root.
5
-
6
- ## Install
7
-
8
- ```bash
9
- # Convert first, then install from your project root
10
- ./scripts/convert.sh --tool cursor
11
- cd /your/project
12
- /path/to/agency-agents-zh/scripts/install.sh --tool cursor
13
- ```
14
-
15
- This creates `.cursor/rules/<agent-slug>.mdc` files in your project.
16
-
17
- ## Finding and Activating Rules
18
-
19
- After installation, rules default to `alwaysApply: false`, meaning they
20
- won't activate automatically. You need to enable them manually:
21
-
22
- 1. Open **Cursor Settings** (`Cmd+,` / `Ctrl+,`) → **Rules** → **Project Rules**
23
- 2. You'll see all installed agent rules listed there
24
- 3. Toggle on the agents you need (avoid enabling all 180 at once — too much context)
25
- 4. Once enabled, the rules automatically apply in Cursor Chat and Composer
26
-
27
- Alternatively, reference an agent in your prompt:
28
-
29
- ```
30
- @rules Use the frontend developer standards to review this component.
31
- ```
32
-
33
- Or enable a rule as always-on by editing its frontmatter:
34
-
35
- ```yaml
36
- ---
37
- description: Expert frontend developer...
38
- globs: "**/*.tsx,**/*.ts"
39
- alwaysApply: true
40
- ---
41
- ```
42
-
43
- ## Troubleshooting
44
-
45
- If you can't see rules in Cursor:
46
-
47
- - Ensure `.cursor/rules/` is in your **project root** (not a global directory)
48
- - Files must have `.mdc` extension (not `.md`)
49
- - Try reopening the project or restarting Cursor
50
-
51
- ## Regenerate
52
-
53
- ```bash
54
- ./scripts/convert.sh --tool cursor
55
- ```
@@ -1,40 +0,0 @@
1
- # Gemini CLI Integration
2
-
3
- Packages all 61 Agency agents as a Gemini CLI extension. The extension
4
- installs to `~/.gemini/extensions/agency-agents/`.
5
-
6
- ## Install
7
-
8
- ```bash
9
- # Generate the Gemini CLI integration files first
10
- ./scripts/convert.sh --tool gemini-cli
11
-
12
- # Then install the extension
13
- ./scripts/install.sh --tool gemini-cli
14
- ```
15
-
16
- ## Activate a Skill
17
-
18
- In Gemini CLI, reference an agent by name:
19
-
20
- ```
21
- Use the frontend-developer skill to help me build this UI.
22
- ```
23
-
24
- ## Extension Structure
25
-
26
- ```
27
- ~/.gemini/extensions/agency-agents/
28
- gemini-extension.json
29
- skills/
30
- frontend-developer/SKILL.md
31
- backend-architect/SKILL.md
32
- reality-checker/SKILL.md
33
- ...
34
- ```
35
-
36
- ## Regenerate
37
-
38
- ```bash
39
- ./scripts/convert.sh --tool gemini-cli
40
- ```