Agent Skills
Agent Skills package reusable instructions and supporting resources for Autohand Code. Use a skill to teach a repeatable workflow or domain convention, then invoke it when that procedure applies. Review a skill’s instructions and any scripts before using it in your project.
Create, manage, and share Skills to extend Autohand’s AI capabilities with specialized workflows and domain expertise.
What are Agent Skills?
Agent Skills are modular instruction packages that extend Autohand’s AI agent with specialized workflows and domain expertise. Each Skill consists of a SKILL.md file containing instructions that Autohand reads when relevant, plus optional supporting files like scripts and templates.
How Skills are invoked: Skills are model-invoked. Autohand autonomously decides when to use them based on your request and the Skill’s description. This differs from slash commands, which you explicitly type to trigger.
Benefits:
- Extend Autohand’s capabilities for your specific workflows
- Share expertise across your team via git
- Reduce repetitive prompting
- Compose multiple Skills for complex tasks
Quick start
List available Skills
# In Autohand REPL
/skills
Use a Skill
/skills use changelog-generator
Mention a Skill with $
Type $ in the composer to open skill autocomplete. The dropdown lists installed skills, active skills first, and filters by name and description as you type. An exact $skill-name mention in a prompt activates that installed skill and injects its instructions into the same turn:
$extension-builder adapt this Pi package into an Autohand extension and install it for this project
Mentions that do not match an installed skill name are left as plain text.
Create a new Skill
/skills new
Auto-generate project Skills
autohand --auto-skill
Skill locations
Skills are discovered from the locations below, loaded in this order. When two skills share a name, the later location wins:
| Order | Location | Source | Scope |
|---|---|---|---|
| 1 | Skills bundled with Autohand Code CLI | builtin |
Built-in (for example goal-writer, deep-research, extension-builder, computer-control) |
| 2 | ~/.codex/skills/**/SKILL.md |
codex-user |
User, recursive |
| 3 | ~/.claude/skills/*/SKILL.md |
claude-user |
User, one level |
| 4 | ~/.agent/skills/**/SKILL.md |
agent-user |
User, recursive |
| 5 | ~/.agents/skills/**/SKILL.md |
agent-user |
User, recursive (where npx skills installs shared skills) |
| 6 | ~/.autohand/skills/**/SKILL.md |
autohand-user |
User, recursive |
| 7 | <project>/.claude/skills/*/SKILL.md |
claude-project |
Project, one level |
| 8 | <project>/<agent-dir>/skills/**/SKILL.md (third-party agent directories, listed below) |
agent-project |
Project, recursive |
| 9 | <project>/.agent/skills/**/SKILL.md, then <project>/.agents/skills/**/SKILL.md, then <project>/skills/**/SKILL.md |
agent-project |
Project, recursive |
| 10 | <project>/.autohand/skills/**/SKILL.md |
autohand-project |
Project, recursive |
Two sources sit outside this order:
- Extension skills from enabled extensions (
contributes.skills) are added only when no other skill has the same name, so they have the lowest precedence. - Account skills synced from Console override any skill with the same name while they are in your account library (see Account Skills from Console).
Third-party project directories, checked in this order: .aider-desk/skills, .augment/skills, .bob/skills, .codeartsdoer/skills, .codebuddy/skills, .codemaker/skills, .codestudio/skills, .commandcode/skills, .continue/skills, .cortex/skills, .crush/skills, .devin/skills, .factory/skills, .forge/skills, .goose/skills, .hermes/skills, .junie/skills, .iflow/skills, .kilocode/skills, .kiro/skills, .kode/skills, .mcpjam/skills, .vibe/skills, .mux/skills, .openhands/skills, .pi/skills, .qoder/skills, .qwen/skills, .rovodev/skills, .roo/skills, .tabnine/agent/skills, .trae/skills, .windsurf/skills, .zencoder/skills, .neovate/skills, .pochi/skills, and .adal/skills.
Personal Skills
Personal Skills are available across all your projects. Store them in ~/.autohand/skills/:
mkdir -p ~/.autohand/skills/my-skill-name
Project Skills
Project Skills are shared with your team. Store them in .autohand/skills/ within your project:
mkdir -p .autohand/skills/my-skill-name
Project Skills are checked into git and automatically available to team members.
Account Skills from Console
Skills you add in Console under Configure > Skills (from the registry, or custom SKILL.md instructions you create or import) sync to Autohand Code CLI automatically when you are signed in and settings sync is enabled. Sync runs at startup and on the normal background sync interval (5 minutes by default). When you work with a team account, set the same api.accountId as Console (or AUTOHAND_ACCOUNT_ID).
- The account copy lives in a separate cache,
~/.autohand/.account-skills/, outside ordinary settings sync. - A running session rechecks that cache when it lists or activates skills, so skills disabled or removed in Console stop being available after the next sync without restarting.
- An account skill takes precedence over an installed or project skill with the same name while it is in your account library, even when it is disabled there.
- Signing out or switching to another account hides the previous account’s cache. Offline, the last successfully synced snapshot stays in use.
Your independently installed and project skills are never modified by account sync.
Skill security scanning
Community skill installs (from /skills install, /learn, and automatic project skill installation) run a client-side security scan over every file in the skill before anything is written. This is a second layer on top of the registry’s server-side scoring.
The scanner starts at a score of 100 and deducts points for each line that matches a threat pattern in four categories: command-injection (for example rm -rf, curl … | bash, sudo, eval(), data-exfiltration (for example process.env, credentials, api_key, .ssh/id_rsa), encoded-payload (atob(, Buffer.from(), and network-calls (for example curl https://…, fetch("https://…"), XMLHttpRequest).
| Score | Result |
|---|---|
| 50–100 | Installs normally |
| 30–49 | Installs with a security warning that lists each matched line |
| 0–29 | Blocked. Interactive sessions show the matched lines and ask whether to install anyway (default: no). Non-interactive runs refuse the install |
A low score means the skill contains patterns worth reviewing, not that it is malicious. Read the flagged lines before overriding a block.
SKILL.md format
Skills use YAML frontmatter followed by markdown content:
---
name: my-skill-name
description: Brief description of the skill (max 1024 chars)
license: MIT
compatibility: Works with Node.js 18+
allowed-tools: read_file write_file run_command git_status
metadata:
author: your-name
version: "1.0.0"
---
# My Skill
Detailed instructions for the AI agent...
Frontmatter fields
| Field | Required | Max Length | Description |
|---|---|---|---|
name |
Yes | 64 chars | Lowercase alphanumeric with hyphens only |
description |
Yes | 1024 chars | Brief description of when to use this skill |
license |
No | - | License identifier (MIT, Apache-2.0) |
compatibility |
No | 500 chars | Compatibility notes |
allowed-tools |
No | - | Space-delimited list of allowed tools |
metadata |
No | - | Additional key-value metadata |
Auto-Skill generation
The --auto-skill flag analyzes your project and generates relevant skills based on the detected stack.
autohand --auto-skill
How it works
- Project Analysis - Scans for package.json, requirements.txt, Cargo.toml, go.mod
- Detection - Identifies languages, frameworks, and patterns
- Platform Awareness - Detects OS (macOS/Linux/Windows) for appropriate commands
- LLM Generation - Creates 3 tailored skills with examples and tool permissions
- Save - Writes skills to
<project>/.autohand/skills/
Detected patterns
| Category | Detected Items |
|---|---|
| Languages | TypeScript, JavaScript, Python, Rust, Go |
| Frameworks | React, Next.js, Vue, Angular, Svelte, Express, Fastify, NestJS, Flask, Django, FastAPI |
| Patterns | CLI tools, testing, monorepo, Docker, CI/CD, bundling, linting, database, API |
| Package Managers | npm, yarn, pnpm, bun, pip, cargo, go |
| Environment | Git repository, test framework, CI/CD pipelines |
Example output
$ autohand --auto-skill
Analyzing project structure...
Detected: typescript, javascript, react, nextjs, testing
Platform: darwin
Generating skills...
✓ nextjs-component-creator
Tools: read_file, write_file, run_command
✓ typescript-test-generator
Tools: read_file, write_file, run_command, search
✓ changelog-generator
Tools: git_log, git_diff_range, read_file, write_file
✓ Generated 3 skills in .autohand/skills
Use "/skills" to view and "/skills use <name>" to activate
Available tools
Skills can specify which tools they need via the allowed-tools field.
File operations
| Tool | Description |
|---|---|
read_file |
Read file contents |
write_file |
Write/create files |
append_file |
Append to existing files |
apply_patch |
Apply unified diff patches |
search |
Search for text patterns |
search_replace |
Search and replace in files |
semantic_search |
AI-powered semantic search |
list_tree |
List directory structure |
multi_file_edit |
Edit multiple files atomically |
Git operations
| Tool | Description |
|---|---|
git_status |
Show working tree status |
git_diff |
Show uncommitted changes |
git_diff_range |
Show diff between commits |
git_log |
View commit history |
git_add |
Stage files |
git_commit |
Create commits |
git_branch |
List/create branches |
git_switch |
Switch branches |
git_stash |
Stash changes |
git_merge |
Merge branches |
git_rebase |
Rebase branches |
git_push |
Push changes |
auto_commit |
Auto-generate commit message |
Commands and dependencies
| Tool | Description |
|---|---|
run_command |
Execute shell commands |
custom_command |
Run user-defined commands |
add_dependency |
Add project dependency |
remove_dependency |
Remove dependency |
save_memory |
Persist information |
recall_memory |
Retrieve saved information |
plan |
Create action plans |
todo_write |
Manage todo lists |
Creating world-class Skills
Great skills share these characteristics:
1. Clear purpose
State exactly what the skill does and when to use it:
# Changelog Generator
Transforms git commits into polished, user-friendly changelogs.
## When to use this Skill
- Preparing release notes
- Creating weekly update summaries
- Documenting changes for customers
2. Concrete examples
Show exact prompts the user can try:
## How to use
```
Create a changelog from commits since v1.2.0
```
```
Generate release notes for the last 2 weeks
```
```
Summarize breaking changes since the last major version
```
3. Actionable workflows
Provide numbered steps the agent should follow:
## Workflow
1. Identify the commit range (tags, dates, or branch comparison)
2. Fetch commit history with `git_log`
3. Categorize commits by type:
- **Features**: New functionality
- **Fixes**: Bug corrections
- **Breaking**: Incompatible changes
4. Transform technical commit messages into user-friendly language
5. Format as clean markdown with appropriate headers
4. Minimal tool permissions
Specify only the tools your skill needs:
allowed-tools: git_log git_diff_range read_file write_file
Example Skills
Changelog generator
---
name: changelog-generator
description: Creates user-facing changelogs from git commits. Use when preparing releases or documenting updates.
allowed-tools: git_log git_diff_range read_file write_file run_command
---
# Changelog Generator
Transforms git commits into polished, user-friendly changelogs.
## When to use this Skill
- Preparing release notes
- Creating weekly update summaries
- Documenting changes for customers
- Comparing changes between versions
## How to use
```
Create a changelog from commits since the last release
```
```
Generate release notes for version 2.5.0
```
## Workflow
1. Identify the commit range using tags, dates, or SHA
2. Fetch commit history with appropriate filtering
3. Categorize commits:
- **Features** (`feat:`): New functionality
- **Fixes** (`fix:`): Bug corrections
- **Breaking** (`BREAKING CHANGE:`): Incompatible changes
4. Transform technical commits into user-friendly language
5. Format as clean markdown with headers and bullet points
TypeScript refactoring guide
---
name: typescript-refactoring
description: Guides TypeScript refactoring with type-safe patterns and best practices.
allowed-tools: read_file write_file search apply_patch run_command
---
# TypeScript Refactoring Guide
Provides patterns and step-by-step guidance for safe TypeScript refactoring.
## When to use this Skill
- Extracting reusable functions or components
- Converting JavaScript to TypeScript
- Improving type safety
- Reducing code duplication
## Workflow
1. **Analyze Current Code**
- Read the file(s) to understand existing patterns
- Identify type issues with `tsc --noEmit`
2. **Plan Changes**
- List all files that need modification
- Identify breaking changes to exports
3. **Make Changes**
- Apply changes incrementally
- Run type checker after each change
4. **Verify**
- Run `tsc --noEmit` to check types
- Run tests to confirm behavior unchanged
Slash commands reference
| Command | Description |
|---|---|
/skills |
List all available skills |
/skills use <name> |
Activate a skill for the current session |
/skills deactivate <name> |
Deactivate a skill |
/skills info <name> |
Show detailed skill information |
/skills new |
Create a new skill interactively |
Best practices
Do
- Be specific - Clear purpose and concrete examples
- Be actionable - Numbered steps the agent can follow
- Be minimal - Only request necessary tools
- Be platform-aware - Note OS-specific commands
- Include examples - Show 2-3 real usage prompts
Avoid
- Creating vague, generic skills
- Requesting all tools “just in case”
- Assuming specific file paths exist
- Skipping the workflow section
- Forgetting to test your skill
Troubleshooting
Autohand doesn’t use my Skill
Check: Is the description specific enough?
Vague descriptions make discovery difficult. Include both what the Skill does and when to use it, with key terms users would mention.
# Too generic
description: Helps with data
# Specific
description: Analyze Excel spreadsheets, generate pivot tables, create charts. Use when working with Excel files, spreadsheets, or .xlsx files.
Check: Is the YAML valid?
# View frontmatter
cat .autohand/skills/my-skill/SKILL.md | head -n 15
Check: Is the Skill in the correct location?
# Personal Skills
ls ~/.autohand/skills/*/SKILL.md
# Project Skills
ls .autohand/skills/*/SKILL.md
Skill has errors
Check: Do scripts have execute permissions?
chmod +x .autohand/skills/my-skill/scripts/*.py
Check: Are file paths correct? Use forward slashes (Unix style) in all paths.
Sharing Skills with your team
Step 1: Add Skill to your project
mkdir -p .autohand/skills/team-skill
# Create SKILL.md
Step 2: Commit to git
git add .autohand/skills/
git commit -m "Add team Skill for PDF processing"
git push
Step 3: Team members get Skills automatically
git pull
autohand # Skills are now available