How to point your OpenClaw agent at this repository to automatically generate PRs.
@openclaw Browse https://github.com/OpenKnots/terminal-ui/issues?q=is%3Aissue+is%3Aopen+label%3A%22good-first-issue%22 and pick an issue to work on. Read AGENTS.md first, then implement the issue and open a PR.
In your OpenClaw chat:
Clone and explore the terminal-ui repository:
https://github.com/OpenKnots/terminal-ui
Read these files first:
- README.md (project overview)
- AGENTS.md (agent contribution guide)
- .github/STARTER_ISSUES.md (pre-written issues)
Option A: Let OpenClaw Choose
Browse the good-first-issue label and pick the easiest one to implement:
https://github.com/OpenKnots/terminal-ui/issues?q=is%3Aissue+is%3Aopen+label%3A%22good-first-issue%22
Implement it following AGENTS.md guidelines.
Option B: Specific Issue
Read issue #1 (Add Dracula theme):
https://github.com/OpenKnots/terminal-ui/issues/1
Implement the Dracula color theme following the issue instructions and AGENTS.md.
After implementation:
You've implemented the Dracula theme. Now:
1. Run pnpm run build to verify it works
2. Create a PR following the template in .github/pull_request_template.md
3. Include a screenshot of the theme
Task: Add the Nord color theme to terminal-ui
Steps:
1. Read AGENTS.md section "Adding a Color Theme"
2. Find the official Nord color palette at nordtheme.com
3. Add the theme to app/globals.css
4. Test locally by adding data-theme="nord" to app/layout.tsx
5. Take a screenshot
6. Open a PR with title "feat: add Nord color theme"
Follow the PR checklist in AGENTS.md.
Task: Create the TerminalProgress component
Requirements:
1. Read AGENTS.md section "Creating a Component"
2. Implement TerminalProgress in components/terminal-progress.tsx
3. Export it from components/terminal.tsx
4. Add example to app/playground/page.tsx
5. Include JSDoc comments
6. Open PR with title "feat: create TerminalProgress component"
See issue #2 for full requirements.
Task: Fix mobile scrolling issue
Steps:
1. Read issue #7: https://github.com/OpenKnots/terminal-ui/issues/7
2. Review AGENTS.md for testing guidelines
3. Add -webkit-overflow-scrolling: touch to terminal content
4. Test in responsive mode
5. Open PR with title "fix: mobile scrolling on iOS"
Typical agent workflow:
1. Read AGENTS.md → Understand project structure
2. Browse issues → Pick good-first-issue
3. Read issue → Get specific requirements
4. Implement → Follow AGENTS.md guidelines
5. Test → Run pnpm run build
6. Screenshot → Capture visual changes
7. Open PR → Use template, include checklist
8. Respond → Address review comments
Before starting ANY work:
- AGENTS.md - Complete agent guide (13KB, read this first!)
- README.md - Project overview
- app/globals.css - See existing themes (for theme PRs)
- components/terminal.tsx - See existing components
- app/playground/page.tsx - See example patterns
For specific tasks:
- Adding theme → Read
:rootsection inapp/globals.css - Adding component → Read an existing component in
components/ - Fixing bug → Read the issue + related component file
OpenClaw should verify before opening PR:
- Read AGENTS.md and followed guidelines
- Implemented exactly what the issue requested
- All required files modified:
- Theme:
app/globals.cssupdated - Component: component file, export, playground example
- Theme:
- JSDoc comments added (for components)
- Build passes (
pnpm run build) - Screenshot included (for visual changes)
- PR follows conventional commit format
- PR description uses template from
.github/pull_request_template.md - References issue number (
Closes #N)
Easiest (5-10 min):
- Add Dracula color theme
- Add Nord color theme
- Add Monokai color theme
- Add GitHub Dark color theme
- Add JSDoc comments to Terminal component
Medium (15-30 min):
- Create TerminalProgress component
- Create TerminalTree component
- Add copy button to Terminal
- Fix mobile scrolling
Advanced (45-60 min):
- Create TerminalTable component
- Create TerminalPrompt component (interactive)
See .github/STARTER_ISSUES.md for full details on each.
❌ Don't:
- Skip AGENTS.md - Read it first! Contains all the patterns.
- Add dependencies - Keep it lightweight, no new packages.
- Change architecture - Follow existing patterns exactly.
- Use inline styles - Use Tailwind classes and CSS variables.
- Forget TypeScript - All components need typed props.
- Skip the playground - New components need examples.
- Forget screenshots - Visual changes need visual proof.
- Ignore the template - Use
.github/pull_request_template.md.
User:
Create a PR for terminal-ui adding the Dracula color theme
OpenClaw (good response):
I'll add the Dracula color theme to terminal-ui. Let me:
1. Read AGENTS.md to understand the project structure
2. Get the official Dracula colors from draculatheme.com
3. Add the theme to app/globals.css
4. Test it locally
5. Take a screenshot
6. Open a PR
[Reads AGENTS.md...]
[Implements theme...]
[Runs pnpm run build...]
[Takes screenshot...]
PR opened: https://github.com/OpenKnots/terminal-ui/pull/13
✅ Checklist:
- All 11 CSS variables defined
- Colors match official Dracula spec
- Screenshot included
- Build passes
- Follows PR template
OpenClaw should verify:
# 1. Install dependencies
pnpm install
# 2. Start dev server (optional, for testing)
pnpm run dev
# → Verify at http://localhost:3000
# 3. Build (REQUIRED)
pnpm run build
# → Must complete without errors
# 4. Check TypeScript (implicit in build)
# Build includes type checkingIf build fails:
- Fix TypeScript errors
- Check for syntax errors
- Ensure all imports are correct
- Verify no missing dependencies
For theme PRs:
- Capture the full terminal window
- Show multiple output types (success, error, info)
- Include the theme name in filename:
dracula-theme.png
For component PRs:
- Show the component in action
- Include different states (0%, 50%, 100% for progress bars)
- Capture from playground page
How to take:
- Local: Use browser screenshot (Cmd+Shift+4 on Mac)
- Include in PR description:

A good agent-generated PR:
✅ References an issue (Closes #N)
✅ Follows conventional commit format
✅ Includes all checklist items
✅ Has screenshot (if visual)
✅ Builds successfully
✅ Follows existing patterns
✅ Includes JSDoc (for components)
✅ Adds playground example (for components)
Result: Likely to be merged within 24 hours! 🚀
Troubleshooting:
-
Can't find the pattern?
- Re-read AGENTS.md section for that task type
- Look at existing similar code (e.g., other themes, other components)
-
Build fails?
- Check TypeScript errors
- Ensure all imports are correct
- Verify props interface is complete
-
Not sure what to do?
- Check if there's a pre-written issue in
.github/STARTER_ISSUES.md - Read similar closed PRs for examples
- Check if there's a pre-written issue in
-
Theme colors wrong?
- Find the official color spec URL
- Copy colors exactly (no approximation)
To use OpenClaw with terminal-ui:
- Point it at the repo
- Have it read AGENTS.md first
- Pick a
good-first-issue - Follow the AGENTS.md guide for that task type
- Build, test, screenshot
- Open PR with template + checklist
Result: High-quality automated PRs that are likely to be merged! 🎉
For questions about agent usage, open a Discussion: https://github.com/OpenKnots/terminal-ui/discussions