Advanced AI Reasoning Templates for Comet Browser
The Scratchpad Framework is a curated collection of AI reasoning templates designed to transform how AI assistants think and respond. All frameworks are in clean YAML format, optimized for Comet Browser's character limits.
scratchpad_fayeblade/
βββ frameworks/ # AI reasoning framework templates
β βββ core/ # 10 general-purpose reasoning templates
β βββ purpose-built/ # 18 task-specific frameworks
β βββ personas/ # 8 AI assistant personalities
βββ scripts/ # Utility and maintenance scripts
β βββ add_framework_metadata.py
β βββ add_yaml_doc_markers.py
β βββ convert_frameworks_to_proper_yaml.py
β βββ fix_all_yaml_compliance.py
β βββ fix_yaml_formatting.py
β βββ generate_framework_docs.py
β βββ refactor_frameworks.py
βββ tests/ # Comprehensive test suite (40 tests)
β βββ test_yaml_frameworks.py
β βββ test_scripts.py
β βββ test_bug_fixes.py
β βββ test_edge_cases.py
βββ docs/ # Extended documentation
β βββ ENHANCEMENT_SUMMARY.md
β βββ FRAMEWORK_COMPARISON.md
β βββ FRAMEWORK_REFERENCE.md
β βββ REMEDIAL_PLAYBOOK.md
β βββ yaml-audit.md
βββ tools/ # Development tools
β βββ yaml-codex/ # YAML validation utilities
βββ schemas/ # JSON schemas for validation
βββ CODEOWNERS # Code ownership definitions
βββ CONTRIBUTING.md # Contribution guidelines
βββ README.md # This file
βββ requirements.txt # Python dependencies
βββ license.txt # MIT License
- Clone the repository
git clone https://github.com/Fayeblade1488/scratchpad_fayeblade.git
cd scratchpad_fayeblade- Install dependencies (for development and testing)
pip install -r requirements.txt- Browse the
frameworks/directory to find a suitable template - Copy the YAML content from your chosen framework
- Paste it as a system prompt in Comet Browser or your AI assistant
- Start chatting and enjoy structured, transparent AI reasoning!
Using Scratchpad Lite for quick tasks:
# Copy content from frameworks/core/scratchpad-lite.yml
# Paste into Comet Browser's system prompt field
# Ask your question - the AI will now use structured reasoningFor research tasks:
# Use frameworks/purpose-built/deep-researcher.yml
# Perfect for academic research and literature reviewsscratchpad-lite.yml- Lightweight, 3-step reasoningscratchpad-2.6.yml- Comprehensive 11-step analysisscratchpad-2.5-refined.yml- Deep, multi-faceted reasoningscratchpad-concise.yml- Short, to-the-point answersscratchpad-think.yml- Metacognitive verbalization- Plus 5 more variants...
deep-researcher.yml- Research and investigationgame-design-gabg.yml- Game design planningemotional-intelligence.yml- Emotion-aware responsespodsynth-clean.yml- Podcast script generation- Plus 14 more specialized frameworks...
gilfoyle-bot.yml- Systems architecture expertise (cynical tone)anton-bot.yml- Browser automation specialist
- Format: YAML 1.2.2 compliant
- Encoding: UTF-8
- Structure: Nested dictionaries with documented keys
- Content Style: Literal block scalars (
|) for long content
Each framework YAML file contains:
name: "Framework Name"
version: "1.0"
category: "core|purpose-built|personas"
documentation:
purpose: "Brief description of framework purpose"
use_case: "Specific use cases and scenarios"
character_count: 1234
framework:
content: |
The actual framework prompt content
Uses literal block scalar for readability- Python: 3.8+ (for development/testing)
- Dependencies: PyYAML, pytest, coverage (see requirements.txt)
- No runtime dependencies for using frameworks
- YAML Syntax: 100% passing
- Test Suite: 40 tests, all passing
- Code Coverage: 59% for utility scripts
- YAML Compliance: Full YAML 1.2.2 compliance
# Run complete test suite
python -m pytest tests/
# Run with verbose output
python -m pytest tests/ -v
# Run with coverage report
python -m coverage run -m pytest tests/
python -m coverage report# YAML validation tests
python -m pytest tests/test_yaml_frameworks.py
# Script functionality tests
python -m pytest tests/test_scripts.py
# Bug fix validation tests
python -m pytest tests/test_bug_fixes.py
# Edge case tests
python -m pytest tests/test_edge_cases.pyCurrent test coverage: 59% for scripts, 40 tests passing
Coverage includes:
- YAML syntax validation
- Framework structure verification
- Script functionality testing
- Edge case handling
- Error recovery paths
The scripts/ directory contains utility tools for framework maintenance:
fix_yaml_formatting.py- Ensures proper YAML formatting with literal block scalarsadd_framework_metadata.py- Adds or updates framework metadatagenerate_framework_docs.py- Auto-generates markdown documentationrefactor_frameworks.py- Converts legacy XML format to modern YAMLconvert_frameworks_to_proper_yaml.py- Converts XML-embedded content to structured YAMLadd_yaml_doc_markers.py- Adds YAML 1.2.2 document markersfix_all_yaml_compliance.py- Comprehensive YAML compliance remediation
# Fix YAML formatting
python scripts/fix_yaml_formatting.py
# Add missing metadata
python scripts/add_framework_metadata.py
# Generate documentation
python scripts/generate_framework_docs.pyScripts support the SCRATCHPAD_DIR environment variable:
export SCRATCHPAD_DIR=/path/to/repository
python scripts/fix_yaml_formatting.pyMIT License - Free for commercial and personal use.
See license.txt for full license text.
We welcome contributions! Here's how you can help:
- Use GitHub Issues for bug reports
- Include framework name and error details
- Provide example YAML content if relevant
- Create YAML file in appropriate category directory
- Follow the standard framework structure
- Include complete documentation metadata
- Test with
pytest tests/ - Submit a Pull Request
- Fork the repository
- Create a feature branch
- Make your changes with tests
- Ensure all tests pass
- Submit a Pull Request
- Improvements to README or docs always welcome
- Keep explanations clear and beginner-friendly
- Include examples where helpful
- 30 frameworks persona and framework rework
- 70% file reduction (240 β 73 files)
- 19% size reduction (149MB β 121MB)
- 100% YAML validation passing
- Orignal repo and author: https://github.com/para-droid-ai/scratchpad
- Discord with information: https://discord.gg/mmbQG63U
- OP of scratch-Pad: https://github.com/para-droid-ai
- Fayeblade Repo Author: https://github.com/Fayeblade1488
Version 3.0 (October 2025) - Major refactoring and YAML conversion complete.