Loading repository data…
Loading repository data…
0-CYBERDYNE-SYSTEMS-0 / repository
AI Skills Development Pipeline System that generates advanced AI agent skills through iterative refinement
A sophisticated web-based system that generates advanced AI agent skills through iterative refinement. The system runs a 3-stage pipeline combining multiple AI models to research, analyze, and create structured skill templates.
Install UV (if not already installed)
# On macOS/Linux
curl -LsSf https://astral.sh/uv/install.sh | sh
# On Windows
powershell -c "irm https://astral.sh/uv/install.ps1 | iex"
# Or with pip
pip install uv
Clone the repository
git clone <repository-url>
cd skills_FFT
Install dependencies with UV
# Install and create virtual environment
uv sync
# Or explicitly
uv venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
uv pip install -e .
Configure environment
cp .env.example .env
Edit .env and add your OpenRouter API key:
OPENROUTER_API_KEY=your_api_key_here
Run the application
uv run app.py
Open in browser Navigate to http://localhost:5001
Domain Research (Perplexity Llama 3.1 Sonar)
Deep Analysis (DeepSeek Coder V2)
Template Generation (DeepSeek Coder V2)
Generated templates are stored in skills_output/ with the following structure:
skills_output/
└── YYYY-MM-DD_HH-MM-SS/
├── skill.md # Final template
├── metadata.json # Pipeline information
├── iteration_1/ # First iteration
│ ├── research.md
│ ├── analysis.md
│ ├── template.md
│ └── instruction.txt
└── iteration_2/ # Second iteration (if applicable)
POST /api/pipeline/start
{"query": "your query here"}POST /api/pipeline/iterate
{"session_id": "session-id"}GET /api/templates
GET /api/template/<timestamp>
POST /api/template/<timestamp>/save
{"content": "template content"}GET /api/template/<timestamp>/export
?type=template or ?type=fullDELETE /api/template/<timestamp>
OPENROUTER_API_KEY (required): Your OpenRouter API keyFLASK_ENV: Environment (default: development)FLASK_DEBUG: Debug mode (default: True)SECRET_KEY: Flask secret keyModels can be configured in config.py:
RESEARCH_MODEL = "perplexity/llama-3.1-sonar-large-128k-online"
ANALYSIS_MODEL = "deepseek/deepseek-coder-v2"
TEMPLATE_MODEL = "deepseek/deepseek-coder-v2"
MAX_ITERATIONS = 3
Run the test suite with UV:
# Run all tests
uv run pytest tests/
# Run with coverage
uv run pytest --cov=. tests/
# Run specific test file
uv run pytest tests/test_pipeline.py
# Install test dependencies first (if needed)
uv sync --group test
UV provides integrated development tool support:
# Format code
uv run black .
uv run isort .
# Lint code
uv run flake8 .
# Type checking
uv run mypy .
# Run pre-commit hooks
uv run pre-commit run --all-files
skills_FFT/
├── app.py # Main Flask application
├── config.py # Configuration management
├── pipeline.py # Pipeline logic
├── requirements.txt # Python dependencies
├── templates/ # Jinja2 HTML templates
├── static/ # CSS, JavaScript, images
├── utils/ # Utility modules
├── tests/ # Test files
└── skills_output/ # Generated templates (git-ignored)
To add a new model to the pipeline:
config.py with the model namepipeline.pyPrompts are defined in pipeline.py in each stage function:
run_research(): Research promptrun_analysis(): Analysis promptrun_template_generation(): Template generation promptAPI Key Error
OPENROUTER_API_KEY is set correctlyPipeline Timeout
pipeline.py if neededTemplate Not Found
skills_output/ directoryEnable debug mode by setting:
FLASK_DEBUG=True
This will provide detailed error messages and auto-reload on code changes.
This project is licensed under the MIT License - see the LICENSE file for details.
For support, please:
Note: This tool requires an active OpenRouter API subscription and may incur costs based on usage.