Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/clever-pandas-glow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"ctx7": minor
---

Add AI-powered skill generation with `skills generate` command, including library search, clarifying questions, real-time query progress, feedback loop, and weekly quota management.
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,9 @@
"prettier": "^3.6.2",
"typescript": "^5.8.2",
"typescript-eslint": "^8.28.0"
},
"dependencies": {
"@inquirer/core": "^11.1.1",
"@inquirer/type": "^4.0.3"
}
}
52 changes: 52 additions & 0 deletions packages/cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,62 @@ ctx7 skills search pdf
# Install a skill
ctx7 skills install /anthropics/skills pdf

# Generate a custom skill with AI
ctx7 skills generate

# List installed skills
ctx7 skills list --claude
```

## Usage

### Generate skills

Generate custom skills tailored to your use case using AI. Requires authentication.

```bash
# Log in first
ctx7 login

# Generate a skill (interactive)
ctx7 skills generate

# Short aliases
ctx7 skills gen
ctx7 skills g

# Generate and install to a specific client
ctx7 skills generate --cursor
ctx7 skills generate --claude

# Generate globally
ctx7 skills generate --global
```

The generate flow:

1. Describe the expertise you want (e.g., "OAuth authentication with NextAuth.js")
2. Select relevant libraries from search results
3. Answer 3 clarifying questions to focus the skill
4. Review the generated skill, request changes if needed, then install

Weekly generation limits apply: free accounts get 6 generations/week, Pro accounts get 10.

### Authentication

Log in to access skill generation and other authenticated features.

```bash
# Log in (opens browser for OAuth)
ctx7 login

# Check login status
ctx7 whoami

# Log out
ctx7 logout
```

### Install skills

Install skills from a project repository to your AI coding assistant's skills directory.
Expand Down Expand Up @@ -110,6 +160,8 @@ For faster usage, the CLI provides short aliases:
```bash
ctx7 si /anthropics/skills pdf # skills install
ctx7 ss pdf # skills search
ctx7 skills gen # skills generate
ctx7 skills g # skills generate
```

## Learn More
Expand Down
Loading