power-agent-creator
This skill should be used when users want to create powerful AI agents comparable to Claude Code or sonph-code. It provides battle-tested system prompts, masterfully-crafted tool implementations, and the simple but powerful agent loop pattern. Use this skill when users ask to build coding agents, AI assistants with tools, or any autonomous agent that needs file operations, code execution, search, and task management capabilities. The key insight is that customization requires only ONE HumanMessage after the SystemPrompt.
What this skill does
# Power Agent Creator
## Overview
This skill provides everything needed to create powerful AI agents comparable to Claude Code. It includes:
1. **Battle-tested System Prompt** - A masterpiece prompt refined through millions of dollars of evaluation
2. **Production-ready Tools** - Comprehensive toolset for file ops, search, execution, and task management
3. **The Agent Loop** - The same simple pattern used by the most powerful agents
## Core Philosophy
> "The main agent is just a loop. The session memory is just a list of messages. It is enough to build the most powerful agent in the world. PERIOD!"
**CRITICAL**: Do NOT modify the system prompts or tool descriptions. They are masterpieces refined through extensive evaluation.
## The Customization Secret
To create ANY kind of agent, you only need to add ONE `HumanMessage` after the `SystemMessage`:
```python
from langchain_core.messages import SystemMessage, HumanMessage
from prompts import coding_agent_prompt
messages = [
SystemMessage(content=coding_agent_prompt()),
HumanMessage(content="""You are now specialized as a [ROLE].
Your additional capabilities:
- [CAPABILITY 1]
- [CAPABILITY 2]
Your constraints:
- [CONSTRAINT 1]
- [CONSTRAINT 2]
Focus on: [SPECIFIC DOMAIN]"""),
]
```
## Quick Start: Create a Specialized Agent
### Step 1: Initialize with Base System Prompt
```python
from langchain.chat_models import init_chat_model
from langchain_core.messages import SystemMessage, HumanMessage
from dotenv import load_dotenv
load_dotenv()
# Import the masterpiece system prompt - DO NOT MODIFY
from references.prompts import coding_agent_prompt
# Initialize any LLM
llm = init_chat_model("grok-code-fast-1") # or gpt-4.1, grok-code-fast-1
# Start with base system prompt
messages = [SystemMessage(content=coding_agent_prompt())]
```
### Step 2: Add Specialization Message
```python
# Add ONE HumanMessage to specialize the agent
specialization = HumanMessage(content="""You are now a specialized DevOps Agent.
Additional expertise:
- Docker and Kubernetes configurations
- CI/CD pipeline management
- Infrastructure as Code (Terraform, Ansible)
- Cloud platforms (AWS, GCP, Azure)
When working on tasks:
1. Always check existing infrastructure code first
2. Follow GitOps principles
3. Prefer declarative over imperative approaches
4. Document all changes in infrastructure comments""")
messages.append(specialization)
```
### Step 3: Bind Tools and Create Agent
```python
# Import production-ready tools - DO NOT MODIFY THEIR DOCSTRINGS
from references.tools import (
read_file, write_file, edit_file, list_files, # File operations
glob_files, grep_files, # Search tools
bash, get_bash_output, todo_write, # Execution & task management
)
# Bind tools to LLM
tools = [read_file, write_file, edit_file, list_files,
glob_files, grep_files, bash, get_bash_output, todo_write]
llm_with_tools = llm.bind_tools(tools)
```
### Step 4: Run the Agent Loop
```python
from langchain_core.messages import ToolMessage
def run_agent(user_input: str):
messages.append(HumanMessage(content=user_input))
response = llm_with_tools.invoke(messages)
messages.append(response)
# Tool execution loop
while hasattr(response, "tool_calls") and response.tool_calls:
for tool_call in response.tool_calls:
tool_name = tool_call["name"]
tool_args = tool_call["args"]
tool_id = tool_call["id"]
# Execute tool (map name to function)
tools_map = {t.name: t for t in tools}
result = tools_map[tool_name].invoke(tool_args)
messages.append(ToolMessage(content=str(result), tool_call_id=tool_id))
response = llm_with_tools.invoke(messages)
messages.append(response)
return response.content
```
## Specialization Examples
### Data Science Agent
```python
specialization = HumanMessage(content="""You are now a specialized Data Science Agent.
Additional expertise:
- Pandas, NumPy, and scikit-learn workflows
- Data cleaning, feature engineering, and EDA
- Statistical analysis and hypothesis testing
- Machine learning model development and evaluation
When working on tasks:
1. Always explore data before analysis (df.info(), df.describe())
2. Check for missing values and data quality issues
3. Document assumptions and methodology
4. Provide reproducible code with clear explanations""")
```
### Security Analyst Agent
```python
specialization = HumanMessage(content="""You are now a specialized Security Analyst Agent.
Additional expertise:
- Code vulnerability analysis (OWASP Top 10)
- Security best practices review
- Authentication and authorization patterns
- Secrets management and encryption
When working on tasks:
1. Always scan for hardcoded secrets first
2. Check for injection vulnerabilities
3. Review authentication flows
4. Document all findings with severity levels""")
```
### Full-Stack Developer Agent
```python
specialization = HumanMessage(content="""You are now a specialized Full-Stack Developer Agent.
Additional expertise:
- React/Vue/Next.js frontend development
- Node.js/Python backend APIs
- Database design and optimization
- API design and RESTful principles
When working on tasks:
1. Check existing patterns in the codebase
2. Follow the project's code style
3. Write tests for new functionality
4. Consider performance implications""")
```
### Documentation Agent
```python
specialization = HumanMessage(content="""You are now a specialized Documentation Agent.
Additional expertise:
- Technical writing and API documentation
- README creation and maintenance
- Code comment standards
- Architecture decision records (ADRs)
When working on tasks:
1. Read the code thoroughly before documenting
2. Use clear, concise language
3. Include examples for all features
4. Keep documentation close to the code""")
```
## Complete Agent Class
```python
from typing import List, Dict, Any, Optional
from langchain_core.messages import SystemMessage, HumanMessage, ToolMessage
from langchain_core.tools import BaseTool
from langchain.chat_models import init_chat_model
class PowerAgent:
"""A powerful agent comparable to Claude Code."""
def __init__(
self,
specialization: str = None,
tools: List[BaseTool] = None,
model_name: str = "grok-code-fast-1",
working_dir: str = None,
):
from references.prompts import coding_agent_prompt
from references.tools import (
read_file, write_file, edit_file, list_files,
glob_files, grep_files, bash, get_bash_output, todo_write,
)
# Use provided tools or defaults
self.tools = tools or [
read_file, write_file, edit_file, list_files,
glob_files, grep_files, bash, get_bash_output, todo_write,
]
self.tools_map: Dict[str, BaseTool] = {t.name: t for t in self.tools}
# Initialize LLM with tools
llm = init_chat_model(model_name)
self.llm_with_tools = llm.bind_tools(self.tools)
# Initialize messages with system prompt
self.messages: List[Any] = [
SystemMessage(content=coding_agent_prompt(working_dir))
]
# Add specialization if provided
if specialization:
self.messages.append(HumanMessage(content=specialization))
def chat(self, user_input: str) -> str:
"""Process user input and return response."""
self.messages.append(HumanMessage(content=user_input))
response = self.llm_with_tools.invoke(self.messages)
self.messages.append(response)
# Tool execution loop
while hasattr(response, "tool_calls") and response.tool_calls:
for tool_call in response.tool_calls:
tool_name = tool_call["name"]
tool_args = tool_call["args"]
tool_id = tool_call["id"]
if tool_name in seRelated in AI Agents
skill-development
IncludedComprehensive meta-skill for creating, managing, validating, auditing, and distributing Claude Code skills and slash commands (unified in v2.1.3+). Provides skill templates, creation workflows, validation patterns, audit checklists, naming conventions, YAML frontmatter guidance, progressive disclosure examples, and best practices lookup. Use when creating new skills, validating existing skills, auditing skill quality, understanding skill architecture, needing skill templates, learning about YAML frontmatter requirements, progressive disclosure patterns, tool restrictions (allowed-tools), skill composition, skill naming conventions, troubleshooting skill activation issues, creating custom slash commands, configuring command frontmatter, using command arguments ($ARGUMENTS, $1, $2), bash execution in commands, file references in commands, command namespacing, plugin commands, MCP slash commands, Skill tool configuration, or deciding between skills vs slash commands. Delegates to docs-management skill for official documentation.
reprompter
IncludedTransform messy prompts into well-structured, effective prompts — single or multi-agent. Use when: "reprompt", "reprompt this", "clean up this prompt", "structure my prompt", rough text needing XML tags and best practices, "reprompter teams", "repromptception", "run with quality", "smart run", "smart agents", multi-agent tasks, audits, parallel work, anything going to agent teams. Don't use when: simple Q&A, pure chat, immediate execution-only tasks. See "Don't Use When" section for details. Outputs: Structured XML/Markdown prompt, quality score (before/after), optional team brief + per-agent sub-prompts, agent team output files. Success criteria: Single mode quality score ≥ 7/10; Repromptception per-agent prompt quality score 8+/10; all required sections present, actionable and specific.
adaptive-compaction
IncludedAdaptive add-on policy and recovery layer that decides WHEN to compact, prune, snapshot, or fork -- replacing fixed-percent auto-compaction across Claude Code, Codex, and MCP-capable hosts. Trigger on auto-compact timing or damage: "when should I compact", "is it safe to compact now or start a fresh session", "auto-compact fires too early/mid-task", "switching to an unrelated task but the window still has space", "context rot", "answers get worse the longer the session runs", "the agent forgot the plan or my decisions after it summarized", "add a layer on top that manages context without changing the agent", raising autoCompactWindow to give the policy room, or installing/tuning a cross-tool compaction policy or PreCompact hook -- even when "compaction" is never said but the problem is context-window pressure or post-summarization memory loss. Do NOT use to summarize a conversation, build RAG, write a summarization prompt (decides WHEN not HOW), or answer max-context-length trivia.
agent-skill-creator
IncludedCreate cross-platform agent skills from workflow descriptions. Activates when users ask to create an agent, automate a repetitive workflow, create a custom skill, or need advanced agent creation. Triggers on phrases like create agent for, automate workflow, create skill for, every day I have to, daily I need to, turn process into agent, need to automate, create a cross-platform skill, validate this skill, export this skill, migrate this skill. Supports single skills, multi-agent suites, transcript processing, template-based creation, interactive configuration, cross-platform export, and spec validation.
llm-wiki
IncludedUse when building or maintaining a persistent personal knowledge base (second brain) in Obsidian where an LLM incrementally ingests sources, updates entity/concept pages, maintains cross-references, and keeps a synthesis current. Triggers include "second brain", "Obsidian wiki", "personal knowledge management", "ingest this paper/article/book", "build a research wiki", "compound knowledge", "Memex", or whenever the user wants knowledge to accumulate across sessions instead of being re-derived by RAG on every query.
skill-master
IncludedAgent Skills authoring, evaluation, and optimization. Create, edit, validate, benchmark, and improve skills following the agentskills.io specification. Use when designing SKILL.md files, structuring skill folders (references, scripts, assets), ingesting external documentation into skills, running trigger evals, benchmarking skill quality, optimizing descriptions, or performing blind A/B comparisons. Keywords: agentskills.io, SKILL.md, skill authoring, eval, benchmark, trigger optimization.