docs
暂无简介
- License 许可
- MIT
- 最近更新
- 2026-11-14
- Stars
- ★ 29
- Forks
- 30
02 资源文件 31
- 参考文档agent_system.md12.1 KB
- 参考文档agent_tools.md10.2 KB
- 参考文档architecture.md21.8 KB
- 参考文档chat_agent_ask.md7.3 KB
- 参考文档chat_command.md13.0 KB
- 参考文档cli_reference.md3.5 KB
- 参考文档configuration.md10.7 KB
- 参考文档data_residency.md6.2 KB
- 参考文档dependencies.md1.2 KB
- 参考文档dev_tools.md2.3 KB
- 参考文档example-config.md4.6 KB
- 参考文档faq.md1.3 KB
- 参考文档file_codecs.md3.9 KB
- 参考文档makefile.md2.8 KB
- 参考文档plugin_confluence.md2.7 KB
- 参考文档plugin_github.md11.7 KB
- 参考文档plugin_gitlab.md6.6 KB
- 参考文档plugin_mask.md2.1 KB
- 参考文档preprocessor.md2.3 KB
- 参考文档rag.md9.4 KB
- 参考文档release.md3.4 KB
- 参考文档security.md5.2 KB
- 参考文档tool_agent.md4.1 KB
- 参考文档tool_confluence_search.md2.9 KB
- 参考文档tool_jira.md3.7 KB
- 参考文档tool_system_date.md1.2 KB
- 参考文档tool_system_grep.md2.6 KB
- 参考文档tool_system_uuid.md994 B
- 参考文档tool_web_fetch.md6.8 KB
- 参考文档user_manual.md10.5 KB
- 参考文档vulnerability_lookup.md1.2 KB
03 SKILL.md 正文
Skills
Skills provide specialized instructions and workflows for specific tasks. go-magnetar loads skills from two locations:
- User skills:
~/.go-magnetar/skills - Project skills:
{current_dir}/.go-magnetar/skills
Project skills have priority over user skills. If a skill with the same name exists in both locations, the project skill will be used.
Skill Format
Each skill is stored in a directory containing a SKILL.md file with the following structure:
IMPORTANT LIMITATION (Current Version):
- Skills currently only support the
SKILL.mdfile - Supporting files and scripts are not yet loaded or executed
- If a skill directory contains additional files (e.g., scripts, templates, data files), they are ignored
- This is a known limitation and support for additional files will be added in future releases
my-skill/
├── SKILL.md ← Only supported file currently
└── auxiliary.txt ← Currently ignored (will be supported in future)
---
name: skill-name
description: Skill description
disable: false
---
Skill content goes here...
Fields
| Field | Type | Required | Description |
|---|---|---|---|
name |
string | Yes | Unique skill identifier |
description |
string | Yes | Brief description of what the skill does |
disable |
boolean | No | Set to true to disable the skill (default: false) |
Skill Content Structure
The skill content is divided into several sections:
Fields Section
The YAML frontmatter at the top of the file defines skill metadata:
---
name: skill-name
description: Skill description
disable: false
---
Main Instructions
The primary instructions for the skill, explaining what the skill does and how to use it.
Important Rules
Mandatory rules that must be followed. Use bold formatting for emphasis:
- YOU ARE PROHIBITED FROM ...
- YOU MUST ...
Critical Restrictions
Actions that are strictly forbidden:
- YOU ARE PROHIBITED FROM MODIFYING ANY FILES in the project directory
- Your only responsibility is to formulate the issue content in Markdown format
- Do not run any commands that would modify the filesystem
Prohibited Tools
Skills can specify which tools are forbidden to use:
- FORBIDDEN from using the search tool
- FORBIDDEN from using any GitHub-related tools (e.g., github_*)
Templates
Skills can provide templates to guide output format:
- Bug Report Template
- Feature Request Template
Output Format
Specifies the exact format requirements for the skill output:
- Begin with the appropriate headers
- Use proper Markdown formatting throughout
- Include code blocks for YAML, JSON, or logs
- ALL ISSUES MUST START WITH "Task: <title issue>" PREFIX
Workflow
Step-by-step instructions for the skill execution:
- Read the user's request carefully
- If details are unclear, ask specific questions to clarify before finalizing
- Determine whether it's a bug or feature request
- Apply the appropriate template structure
- Fill in all relevant sections with detailed information
- Review for completeness and clarity
- Output the final Markdown issue
Examples
Basic Skill
my-skill/
└── SKILL.md
---
name: go-module-help
description: Helper for Go module operations
disable: false
---
When working with Go modules, always run `go mod tidy` after adding or removing imports...
Disabled Skill
---
name: legacy-workflow
description: Old workflow instructions
disable: true
---
These instructions are outdated and should not be used...
Directory Structure
Skills are loaded from .go-magnetar/skills directories. Hidden directories (starting with .) are skipped.
~/.go-magnetar/skills/
└── go-mod/
└── SKILL.md
└── docker-help/
└── SKILL.md
project/.go-magnetar/skills/
└── project-specific/
└── SKILL.md
Skill Priority and Conflict Resolution
When skills with the same name exist in multiple locations, project skills always take precedence over user skills.
Conflict Resolution Rules
-
Project skills have absolute priority — if a skill exists in
{current_dir}/.go-magnetar/skills, it will be used regardless of whether the same skill exists in~/.go-magnetar/skills -
User skills serve as fallback — if a skill is not found in the project directory, the system falls back to user-level skills
-
No merging occurs — when a conflict arises, the entire project skill replaces the user skill; partial merges or combinations are not supported
-
Explicit disabling override — a project skill can disable a user skill by setting
disable: truein its frontmatter, effectively making the skill unavailable even if the user skill is enabled
This priority system ensures that project-specific skills always override general-purpose user skills, providing a clean way to customize behavior per project while maintaining user-level defaults.
Using Skills
Skills are activated via the /skill chat command in the interactive REPL.
List Available Skills
> /skill
Available skills:
* coding - Programming and code assistance
* writing - Writing and content creation
Load a Skill
> /skill coding
Loaded skill: coding
Load a Skill with Context
> /skill writing "Help me write a blog post"
Loaded skill: writing
The skill content is applied as system instructions to the model, and the conversation continues with the new context.
See docs/chat_command.md for complete command documentation.
License
04 同仓库更多 Skills
test-skill-2
Test skill 2
test-skill-1
Test skill 1
hidden-skill
Hidden skill that should not be loaded
make-issue
Create GitHub issues from user requests
commit-message
Create GitHub commit message
bug-hunter
Detect and analyze bugs in the project codebase