Skip to content

Conversation

@neubig
Copy link
Contributor

@neubig neubig commented Dec 7, 2025

Summary

This PR adds documentation about skills to the CLI section, mostly relying on pointing to the existing documentation in other places.

This commit addresses user confusion about where to place skills when using
the OpenHands CLI and how to verify they are working correctly.

Changes made:
- Added comprehensive 'Using Skills with CLI' section to cli-mode.mdx explaining:
  - Both skill locations: ~/.openhands/skills/ (user-level) and .openhands/skills/ (repo-level)
  - How to create general and keyword-triggered skills
  - How to verify skills are working
  - Note about microagents vs skills naming

- Updated skills overview matrix to clarify CLI supports both locations

- Enhanced CLI platform-specific differences to show both skill locations

- Added extensive troubleshooting section to keyword.mdx covering:
  - Common file location issues
  - Frontmatter formatting problems
  - How to verify skills are enabled
  - Trigger keyword best practices
  - Common mistakes (microagents folder, YAML formatting, etc.)
  - Step-by-step testing procedure

- Updated cli-settings.mdx to add Skills Configuration section with:
  - Default skill locations
  - Environment variables for controlling skills
  - Link to troubleshooting guide

These changes help users understand that:
1. Skills work in CLI mode with file-based configuration
2. Skills can be placed in two locations (user-level and repo-level)
3. The folder should be named 'skills' not 'microagents'
4. Skills are enabled by default
5. How to troubleshoot when skills don't trigger as expected

Fixes documentation gap reported by users who couldn't get skills working
in CLI mode.
- Replace verbose skills documentation with concise summary
- Add links to existing comprehensive skills documentation
- Remove redundant examples already covered in skills overview
- Maintains essential information about user and repo skill locations

This addresses feedback to make CLI docs more concise and avoid
duplication of content that already exists in /overview/skills.

Co-authored-by: openhands <[email protected]>
@neubig
Copy link
Contributor Author

neubig commented Dec 7, 2025

@OpenHands

  1. remove the changes to openhands/usage/run-openhands/cli-mode.mdx and make sure the description in openhands/usage/run-openhands/cli-settings.mdx is self-contained with links to the appropriate docs in the other part of the repo. make sure that the other parts files are consistent.
  2. The troubleshooting in overview/skills/keyword.mdx is far too verbose, probably just the first 3 bullets are sufficient (or if there is critical information in the following bullets it can be folded in to these three)

@openhands-ai
Copy link

openhands-ai bot commented Dec 7, 2025

I'm on it! neubig can track my progress at all-hands.dev

- Remove Skills Support section from cli-mode.mdx (per user request)
- Make skills documentation in cli-settings.mdx self-contained with:
  - Clear explanation of what skills are (markdown files, always-active or keyword-triggered)
  - Skill locations (user-level and repo-level)
  - Skill types with links to detailed docs
  - Environment variables for configuration
  - Comprehensive links to all related documentation
- Simplify troubleshooting in keyword.mdx to first 3 bullets:
  - Kept critical information from other bullets (folder name mistake, case sensitivity)
  - Folded common mistakes into frontmatter section
  - Consolidated testing guidance into bullet 3
- Update all cross-references in overview/skills.mdx to point to cli-settings.mdx instead of removed cli-mode.mdx section

All documentation now consistently points to cli-settings.mdx#skills-configuration for CLI skills information.

Co-authored-by: openhands <[email protected]>
@neubig neubig marked this pull request as ready for review December 7, 2025 17:50
@neubig neubig requested a review from mamoodi as a code owner December 7, 2025 17:50
@neubig neubig changed the title docs: Simplify CLI skills section and add root cause analysis for v1.0.7 issue docs: Add documentation of skills to the CLI section Dec 8, 2025
@OpenHands OpenHands deleted a comment from openhands-ai bot Dec 8, 2025
- **CLI**: Place skills in `~/.openhands/skills/` (user-level) or `.openhands/skills/` (repository-level)
- **GUI**: Place skills in `.openhands/skills/` in your repository root
- Ensure the file has a `.md` extension (e.g., `my-skill.md`, not `my-skill.txt`)
- Common mistake: Using folder name `microagents` instead of `skills`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this shouldn't be a mistake? it should be backward compatible

- **CLI**: Place skills in `~/.openhands/skills/` (user-level) or `.openhands/skills/` (repository-level)
- **GUI**: Place skills in `.openhands/skills/` in your repository root
- Ensure the file has a `.md` extension (e.g., `my-skill.md`, not `my-skill.txt`)
- Common mistake: Using folder name `microagents` instead of `skills`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- Common mistake: Using folder name `microagents` instead of `skills`

### Skills-related Environment Variables

- `AGENT_ENABLE_PROMPT_EXTENSIONS` - Enable/disable skills (default: `true`)
- `AGENT_DISABLED_MICROAGENTS` - List of specific skills to disable
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think CLI/SDK support these env vars?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants