AI-powered writing agents for VS Code, GitHub Copilot, and Claude
Install a collection of specialized AI agents designed to help you write content following the "cozy web" editorial philosophy.
The project is inspired by Speedgrapher, an MCP server designed to assist professional writers.
The Ghostwriter Agents consists of five specialized agents that work together to help you:
- Interviewer: Conduct structured interviews to gather raw material for articles.
- Writer: Expand outlines and drafts into comprehensive articles.
- Reviewer: Provide actionable feedback based on editorial guidelines.
- Context Loader: Load your current draft into context for seamless editing.
- Voice Analyzer: Analyze your writing style to maintain a consistent voice.
- Brainstormer: Facilitate brainstorming sessions to explore ideas and generate actionable plans.
# Install agents for all platforms (VS Code, Copilot, Claude)
npx @estruyf/ghostwriter
# Install for specific platforms
npx @estruyf/ghostwriter --vscode
npx @estruyf/ghostwriter --copilot
npx @estruyf/ghostwriter --claude
# Uninstall agents from all platforms
npx @estruyf/ghostwriter --uninstallAfter installation:
- Restart your editor
- Start using agents depends on the AI tool you use (see Platform-Specific Setup)
Loads your current work-in-progress article into context for further commands.
Use when: Starting a new editing session or switching between drafts.
Conducts structured interviews to gather material for blog posts, articles, reviews, and more. Asks one question at a time, collects code snippets, error logs, and real-world examples.
Use when: Starting a new article from scratch or gathering material from recent work.
Workflow:
- Start:
@ghostwriter-interviewer - Answer questions naturally, sharing code/logs when asked
- Say "stop" when finished
- Request transcript: "Can you provide the interview transcript?"
- Save as
INTERVIEW.md
Expands working outlines or drafts into comprehensive, detailed articles while maintaining your voice and narrative flow.
Use when: You have an outline or thin draft that needs expansion. It will
use the VOICE.md and INTERVIEW.md files if present.
Features:
- Adds context without fluff
- Links to official documentation (with
TODOplaceholders for uncertain URLs) - Explains why code does what it does
- Maintains narrative thread
Reviews articles against editorial guidelines, providing concrete, actionable feedback.
Use when: You have a complete draft ready for review.
Checks for:
- Narrative thread and structure
- Technical accuracy
- Tone (honest about pain and payoff)
- Code quality and citations
- Missing resources section
Analyzes your existing writing to create a reusable style guide that other agents can follow.
Use when: Setting up agents for the first time or refining your voice profile.
Outputs:
- Voice profile (tone, pacing, formality)
- Style rules (do/don't bullets)
- Lexicon (favorite phrases, words to avoid)
- Structure patterns
- Save as
VOICE.md
Facilitates brainstorming sessions to explore ideas and generate actionable plans.
Use when: You need to generate ideas, outline content, or plan projects.
Ghostwriter agents follow the "cozy web" editorial approach:
-
Honest (Pain and Payoff)
- Don't sanitize the process
- Share cryptic error messages and failed attempts
- Show the real debugging journey
-
Professional Peer
- Assume smart readers who lack specific context
- Avoid "just" and "simply" (patronizing words)
- Write as an experienced peer sharing knowledge
-
Narrative Focus
- Every article needs a thread (journey, mystery, exploration)
- Show struggles and breakthroughs
- Real-world examples and actual output
-
Technical Excellence
- Copy-paste runnable code
- Link to official documentation
- Realistic variable names
- Explain why, not just what
# 1. Conduct interview
@ghostwriter-interviewer
# ... answer questions, share code/logs
# Save transcript to INTERVIEW.md
# 2. Create initial outline from interview
@ghostwriter-writer Please create an outline from INTERVIEW.md
# 3. Expand sections
@ghostwriter-writer Expand the "Debugging the Issue" section
# 4. Review draft
@ghostwriter-context # Load current draft
@ghostwriter-reviewer
# 5. Polish based on feedback
@ghostwriter-writer Address reviewer feedback: add more context to the error handling section
# 6. Final voice check (optional)
@ghostwriter-voice Analyze my previous articles in ./content/posts# 1. Load outline
@ghostwriter-ghostwriter-context
# 2. Expand
@ghostwriter-writer Expand this outline into a full article
# 3. Review and iterate
@ghostwriter-reviewer
@ghostwriter-writer Fix the issues noted by the reviewerAgents are installed to .github/agents/ in your project.
Access via the agent selector in the chat view of GitHub Copilot.
Agents are installed to ~/.copilot/agents/.
Access them by invoking Copilot CLI in your terminal, and using the /agent
command to select the desired agent you want to interact with.
Agents are installed to ~/.claude/agents/.
In the Claude CLI, use the following commands to interact with agents:
@agent-ghostwriter-interviewer@agent-ghostwriter-writer@agent-ghostwriter-reviewer@agent-ghostwriter-context@agent-ghostwriter-voice@agent-ghostwriter-brainstorm
If you want, you can also use the agents on mobile AI clients like GitHub Copilot, Claude Mobile, or others. To do so, you will need to tell it to fetch the agent definition from the GitHub repository.
For GitHub Copilot Web, you can use the following link:
Start the interview in GitHub Copilot Web
In other clients, use the following prompt to fetch the agent definition:
Fetch: https://raw.githubusercontent.com/estruyf/ghostwriter-agents-ai/refs/heads/main/agents/interview.ghostwriter.md
Use the agent to start the interview
npx ghostwriter [options]
Options:
--vscode Install agents for VS Code only
--copilot Install agents for GitHub Copilot only
--claude Install agents for Claude only
--all Install agents for all platforms (default)
--uninstall Uninstall agents from specified platforms
--help, -h Show this help message
Examples:
npx ghostwriter # Install for all platforms
npx ghostwriter --vscode # Install for VS Code only
npx ghostwriter --copilot --claude # Install for Copilot and Claude
npx ghostwriter --uninstall # Uninstall from all platforms
npx ghostwriter --uninstall --vscode # Uninstall from VS Code onlySolution: Restart your editor after installation.
- VS Code: Verify files exist in
.github/agents/ - Copilot: Verify files exist in
~/.copilot/agents/ - Claude: Verify files exist in
~/.claude/agents/
Solution: Check that you're using the latest version:
npx @estruyf/ghostwriter@latestThis is expected! The writer agent only adds links when confident they're
correct. Replace TODO placeholders with the actual URLs.
Found a bug or have a suggestion? Open an issue.
MIT © Elio Struyf