Skip to content

Context7 Platform -- Up-to-date docs for AI agents

Add all-agents option for ctx7 skills install (#2424)

Fahreddin Özcanbc8eaf11a624
diff --git a/.changeset/fuzzy-camels-wave.md b/.changeset/fuzzy-camels-wave.md
new file mode 100644
index 00000000..d3d8102d
--- /dev/null
+++ b/.changeset/fuzzy-camels-wave.md
@@ -0,0 +1,5 @@
+---
+"ctx7": patch
+---
+
+Add `--all-agents` and `--yes` support to `ctx7 skills install` for non-interactive multi-agent installs.
diff --git a/docs/clients/cli.mdx b/docs/clients/cli.mdx
index c2ae0b10..e96985b6 100644
--- a/docs/clients/cli.mdx
+++ b/docs/clients/cli.mdx
@@ -229,6 +229,7 @@ ctx7 skills install /anthropics/skills pdf --claude # Claude Code
ctx7 skills install /anthropics/skills pdf --cursor # Cursor
ctx7 skills install /anthropics/skills pdf --universal # Universal (.agents/skills/)
ctx7 skills install /anthropics/skills pdf --antigravity
+ctx7 skills install /anthropics/skills pdf --all-agents # Universal + all vendor-specific locations
```
**Install globally** (available across all projects):
@@ -236,6 +237,8 @@ ctx7 skills install /anthropics/skills pdf --antigravity
```bash
ctx7 skills install /anthropics/skills pdf --global
ctx7 skills install /anthropics/skills --all --global
+ctx7 skills install /anthropics/skills pdf --global --universal --yes
+ctx7 skills install /anthropics/skills pdf --global --all-agents --yes
```
<Note>
diff --git a/docs/skills.mdx b/docs/skills.mdx
index 4b22674e..f3da3fea 100644
--- a/docs/skills.mdx
+++ b/docs/skills.mdx
@@ -87,7 +87,7 @@ ctx7 login
ctx7 skills generate
```
-All install commands accept `--claude`, `--cursor`, `--universal`, and `--global` flags to target a specific client or install location.
+All install commands accept `--claude`, `--cursor`, `--universal`, `--all-agents`, and `--global` flags to target a specific client or install location. Use `--yes` to skip confirmation prompts for non-interactive installs.
See the [CLI reference](/clients/cli#skills) for the full flag reference and examples.
diff --git a/packages/cli/README.md b/packages/cli/README.md
index 13952c3c..2f724b97 100644
--- a/packages/cli/README.md
+++ b/packages/cli/README.md
@@ -177,6 +177,12 @@ ctx7 skills install /anthropics/skills pdf --universal
# Install globally (home directory instead of current project)
ctx7 skills install /anthropics/skills pdf --global
+
+# Install non-interactively
+ctx7 skills install /anthropics/skills pdf --global --universal --yes
+
+# Install to all supported agent locations
+ctx7 skills install /anthropics/skills pdf --all-agents
```
### Search for skills
diff --git a/packages/cli/src/commands/skill.ts b/packages/cli/src/commands/skill.ts
index c04d76dc..fd90b69b 100644
--- a/packages/cli/src/commands/skill.ts
+++ b/packages/cli/src/commands/skill.ts
@@ -99,6 +99,8 @@ export function registerSkillCommands(program: Command): void {
.argument("<repository>", "GitHub repository (/owner/repo)")
.argument("[skill]", "Specific skill name to install")
.option("--all", "Install all skills without prompting")
+ .option("--all-agents", "Install to all supported agent locations")
+ .option("-y, --yes", "Skip confirmation prompts")
.option("--global", "Install globally instead of current directory")
.option("--claude", "Claude Code (.claude/skills/)")
.option("--cursor", "Cursor (.cursor/skills/)")
@@ -173,6 +175,8 @@ export function registerSkillAliases(program: Command): void {
.argument("<repository>", "GitHub repository (/owner/repo)")
.argument("[skill]", "Specific skill name to install")
.option("--all", "Install all skills without prompting")
+ .option("--all-agents", "Install to all supported agent locations")
+ .option("-y, --yes", "Skip confirmation prompts")
.option("--global", "Install globally instead of current directory")
.option("--claude", "Claude Code (.claude/skills/)")
.option("--cursor", "Cursor (.cursor/skills/)")
diff --git a/packages/cli/src/types.ts b/packages/cli/src/types.ts
index 4922ad96..5cd1d48d 100644
--- a/packages/cli/src/types.ts
+++ b/packages/cli/src/types.ts
@@ -129,6 +129,7 @@ export type IDE = "claude" | "cursor" | "antigravity" | "universal";
export type Scope = "project" | "global";
export interface IDEOptions {
+ allAgents?: boolean;
claude?: boolean;
cursor?: boolean;
universal?: boolean;
diff --git a/packages/cli/src/utils/ide.ts b/packages/cli/src/utils/ide.ts
index 674b078a..ce0e5185 100644
--- a/packages/cli/src/utils/ide.ts
+++ b/packages/cli/src/utils/ide.ts
@@ -27,6 +27,10 @@ import {
} from "../types.js";
export function getSelectedIdes(options: IDEOptions): IDE[] {
+ if (options.allAgents) {
+ return ["universal", ...VENDOR_SPECIFIC_AGENTS];
+ }
+
const ides: IDE[] = [];
if (options.claude) ides.push("claude");
if (options.cursor) ides.push("cursor");
@@ -36,7 +40,13 @@ export function getSelectedIdes(options: IDEOptions): IDE[] {
}
export function hasExplicitIdeOption(options: IDEOptions): boolean {
- return !!(options.claude || options.cursor || options.universal || options.antigravity);
+ return !!(
+ options.allAgents ||
+ options.claude ||
+ options.cursor ||
+ options.universal ||
+ options.antigravity
+ );
}
/** Detect vendor-specific agents whose parent directory exists. */