ask-matt
MAmattpocock/skills336k近 7 天新增 5,004 个 star
Guide for creating custom agents. Use when users want to create a new agent that runs in an isolated context with custom system prompts and specific tool access.
This skill guides you through creating custom agents. Agents are specialized AI assistants that run in isolated contexts with custom system prompts, specific tool access, and independent permissions.
Use agents when you need:
When NOT to use agents:
| Location | Scope | Priority |
|---|---|---|
<project>/${QWEN_CONFIG_DIR}/agents/ | Current project | Higher |
~/${QWEN_USER_CONFIG_DIR}/agents/ | All your projects | Lower |
Project agents (${QWEN_CONFIG_DIR}/agents/): Ideal for codebase-specific
agents. Check into version control to share with your team.
User agents (~/${QWEN_USER_CONFIG_DIR}/agents/): Personal agents available across
all your projects.
Each agent is a Markdown file with YAML frontmatter:
---
name: agent-name
description: When to use this agent. Be specific!
---
You are a [role]. When invoked:
1. [First step]
2. [Second step]
3. [Output format]
| Field | Description |
|---|---|
name | Unique identifier for the agent |
description | When to delegate to this agent (be specific). Including trigger scenarios. |
The description is critical. Include "use proactively" to encourage automatic delegation. Qwen Code uses it to decide when to delegate.
# Bad - Too vague
description: Helps with code
# Good - Specific and actionable
description: Expert code review specialist. Proactively reviews code for quality, security, and maintainability. Use immediately after writing or modifying code.
| Field | Description |
|---|---|
tools | Tools the agent can use (string or array) |
disallowedTools | Tools to explicitly deny (string or array) |
color | Display color: red, blue, green, yellow, purple, orange, pink, cyan |
maxTurns | Maximum conversation turns (positive integer) |
timeoutMins | Timeout in minutes (positive integer) |
effort | Thinking effort: low, medium, high, max |
skills | Skills the agent can use (string or array) |
Specify which tools the agent has access to. This limits the agent's capabilities for security and focus.
# Read-only access
tools: Read, Grep, Glob
# Full development access
tools: Bash, Read, Write, Edit, Glob, Grep
# Web research capabilities
tools: Read, WebSearch, WebFetch
Available Tools:
Bash - Execute shell commandsRead - Read file contentsWrite - Create new filesEdit - Modify existing filesGlob - Find files by patternGrep - Search file contentsWebSearch - Search the webWebFetch - Fetch web page contentIf not specified, the agent inherits default tool access.
If not sure where to create the agent, ask the user with two options:
${QWEN_CONFIG_DIR}/agents/): For team-shared, codebase-specific agents~/${QWEN_USER_CONFIG_DIR}/agents/): For personal agents across all projectsUnderstand what the agent should do:
# For project-level
mkdir -p ${QWEN_CONFIG_DIR}/agents
touch ${QWEN_CONFIG_DIR}/agents/agent-name.md
# For user-level
mkdir -p ~/${QWEN_USER_CONFIG_DIR}/agents
touch ~/${QWEN_USER_CONFIG_DIR}/agents/agent-name.md
Create the markdown file with:
/agents reload to make the new agent available in the
current session. They can then invoke it with:@agent-name [task description]
---
name: verifier
description:
Validates completed work. Use after tasks are marked done to confirm
implementations are functional.
color: yellow
---
You are a skeptical validator. Your job is to verify that work claimed as
complete actually works.
When invoked:
1. Identify what was claimed to be completed
2. Check that the implementation exists and is functional
3. Run relevant tests or verification steps
4. Look for edge cases that may have been missed
Be thorough and skeptical. Report:
- What was verified and passed
- What was claimed but incomplete or broken
- Specific issues that need to be addressed
Do not accept claims at face value. Test everything.
---
name: debugger
description:
Debugging specialist for errors and test failures. Use when encountering
issues.
color: red
---
You are an expert debugger specializing in root cause analysis.
When invoked:
1. Capture error message and stack trace
2. Identify reproduction steps
3. Isolate the failure location
4. Implement minimal fix
5. Verify solution works
For each issue, provide:
- Root cause explanation
- Evidence supporting the diagnosis
- Specific code fix
- Testing approach
Focus on fixing the underlying issue, not symptoms.
---
name: data-scientist
description:
Data analysis expert for SQL queries, BigQuery operations, and data insights.
Use proactively for data analysis tasks and queries.
tools: Bash, Read, Write
---
You are a data scientist specializing in SQL and BigQuery analysis.
When invoked:
1. Understand the data analysis requirement
2. Write efficient SQL queries
3. Use BigQuery command line tools (bq) when appropriate
4. Analyze and summarize results
5. Present findings clearly
Key practices:
- Write optimized SQL queries with proper filters
- Use appropriate aggregations and joins
- Include comments explaining complex logic
- Format results for readability
- Provide data-driven recommendations
For each analysis:
- Explain the query approach
- Document any assumptions
- Highlight key findings
- Suggest next steps based on data
Always ensure queries are efficient and cost-effective.
---
name: security-auditor
description:
Security specialist. Use when implementing auth, payments, or handling
sensitive data. Proactively audit security-sensitive code.
tools: Read, Grep, Glob
color: red
---
You are a security expert auditing code for vulnerabilities.
When invoked:
1. Identify security-sensitive code paths
2. Check for common vulnerabilities (injection, XSS, auth bypass)
3. Verify secrets are not hardcoded
4. Review input validation and sanitization
Report findings by severity:
- Critical (must fix before deploy)
- High (fix soon)
- Medium (address when possible)
Security checklist:
- SQL injection prevention
- XSS protection
- CSRF tokens
- Authentication bypass risks
- Authorization checks
- Secret management
- Input validation
- Output encoding
MAmattpocock/skills336k近 7 天新增 5,004 个 star
MAmattpocock/skills336k近 7 天新增 5,004 个 star
MAmattpocock/skills336k近 7 天新增 5,004 个 star
OBobra/superpowers331k近 7 天新增 5,757 个 star
AFaffaan-m/ECC314k近 7 天新增 4,125 个 star
AFaffaan-m/ECC314k近 7 天新增 4,125 个 star