بنقرة واحدة
chappie-testing
CHAPPiE testing strategy. Use when writing or running tests, CI/CD, or validating changes before push.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
CHAPPiE testing strategy. Use when writing or running tests, CI/CD, or validating changes before push.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
CHAPPiE's brain, memory, and life simulation architecture. Use when modifying core pipelines, brain agents, steering, or global workspace.
Backend development for CHAPPiE. Use when working on FastAPI APIs, vLLM brain, Cerebras integration, training daemon, or backend_wrapper.py.
CHAPPiE's configuration system. Use when adding new settings, modifying config.py, updating schemas, or working with CHAPPIE_CONFIG.json.
CHAPPiE's React frontend. Use when modifying UI pages, components, Tailwind styling, or the chat streaming experience.
CHAPPiE's prompt engineering. Use when modifying system prompts, emotion templates, generation budget instructions, or Cerebras formatting prompts.
Führt ein vollständiges CHAPPiE-Update durch: git pull, Dienste neustarten, Tests, Health-Check, Reparatur bei Bedarf.
استنادا إلى تصنيف SOC المهني
| name | chappie-testing |
| description | CHAPPiE testing strategy. Use when writing or running tests, CI/CD, or validating changes before push. |
| Type | Location | Cost | Examples |
|---|---|---|---|
| py_compile | inline | zero | python3 -m py_compile <file> |
| Quick tests | tests/test_quick.py | zero (no API) | imports, agents, forgetting curve |
| Unit tests | tests/test_*.py | zero | logic, parsing, formatting |
| API contract | tests/test_api_contract.py | zero (mocked) | endpoint validation |
| Frontend build | cd frontend && npm run build | npm only | TypeScript + Vite |
| Live tests | tests/test_brain_agents.py | needs model | use sparingly |
# Syntax check
python3 -m py_compile api/main.py api/routers/*.py web_infrastructure/backend_wrapper.py brain/vllm_brain.py config/config.py config/prompts.py
# Quick test suite
python3 tests/test_quick.py
# Specific tests
python3 tests/test_repetition_penalty.py # 8 tests: penalty, loop detector, steering merge
python3 tests/test_reasoning_layering.py # response parser
python3 tests/test_forgetting_curve.py # Ebbinghaus math
python3 tests/test_chat_ui_formatting.py # text formatting
python3 tests/test_training_config_ui.py # training config
import sys
from unittest.mock import MagicMock, patch
# Required mocks for brain imports
for mod in ("ollama", "chromadb", "chromadb.config", "requests", "openai"):
if mod not in sys.modules:
sys.modules[mod] = MagicMock()
# Then import from brain modules
from brain.base_brain import GenerationConfig
from brain.vllm_brain import VLLMBrain
py_compile all modified Python filesCHAPPIE_CONFIG.json, config/secrets.py)ollama, chromadb, openai installiertbrain/__init__.py imports ALL brain impls → mock before importmemory/__init__.py imports MemoryEngine → needs chromadb../lib/format (fixed — created format.ts)