A comprehensive development workflow system that maintains lessons learned, uses a scratchpad for task planning, and integrates LLM, web scraping, and search capabilities for enhanced development tasks.
A development workflow system that learns from mistakes, maintains task context, and provides powerful LLM and web interaction tools.
This skill enables AI assistants to maintain persistent knowledge across interactions, organize complex tasks, and leverage external tools (LLM APIs, web scrapers, search engines) to enhance development capabilities.
When you encounter reusable information or corrections:
Use `.cursorrules` as a scratchpad to:
```
[X] Completed task
[ ] Pending task
```
All tools use `python3` from the virtual environment at `./venv`.
#### LLM API
Query language models for assistance:
```bash
venv/bin/python3 ./tools/llm_api.py --prompt "Your question" --provider "anthropic"
```
**Supported Providers:**
**Programmatic Usage:**
```python
from llm_api import query_llm
response = query_llm("Your prompt", provider="anthropic")
```
#### Screenshot Verification
Capture and verify web pages visually:
```bash
venv/bin/python3 tools/screenshot_utils.py URL --output screenshot.png --width 1920 --height 1080
venv/bin/python3 tools/llm_api.py --prompt "Describe this page" --provider openai --image screenshot.png
```
**Programmatic Workflow:**
```python
from screenshot_utils import take_screenshot_sync
from llm_api import query_llm
screenshot_path = take_screenshot_sync('https://example.com', 'screenshot.png')
response = query_llm(
"What is the background color and title?",
provider="openai",
image_path=screenshot_path
)
```
#### Web Scraping
Extract content from multiple URLs concurrently:
```bash
venv/bin/python3 ./tools/web_scraper.py --max-concurrent 3 URL1 URL2 URL3
```
#### Search Engine
Search the web and get structured results:
```bash
venv/bin/python3 ./tools/search_engine.py "your search keywords"
```
**Output Format:**
```
URL: https://example.com
Title: Result title
Snippet: Result snippet
```
Combine with web scraper to fetch full page content.
1. **Start New Task:**
- Open `.cursorrules` and review Scratchpad
- Clear outdated task context if necessary
- Write task explanation and initial plan with todo markers
2. **During Task Execution:**
- Update todo markers as subtasks complete
- Document any reusable discoveries in Lessons section
- Consult Scratchpad before planning next steps
3. **Using Tools:**
- Activate venv before running Python tools
- Use LLM API for quick queries or programmatically for complex workflows
- Use screenshot verification for visual testing
- Use web scraper and search engine for research tasks
4. **At Milestones:**
- Reflect on progress in Scratchpad
- Plan next phase based on big picture
- Update Lessons with any corrections or insights
5. **Task Completion:**
- Mark all todos as complete
- Document key learnings in Lessons
- Commit changes with proper message format
Leave a review
No reviews yet. Be the first to review this skill!
# Download SKILL.md from killerskills.ai/api/skills/self-improving-development-rules-with-llm-tools/raw