Skip to content

refactor(GH-29): versionner les skills des agents (table dédiée)#30

Merged
simodev25 merged 16 commits into
mainfrom
refactor/GH-29/agent-skills-versioning
Jun 21, 2026
Merged

refactor(GH-29): versionner les skills des agents (table dédiée)#30
simodev25 merged 16 commits into
mainfrom
refactor/GH-29/agent-skills-versioning

Conversation

@simodev25

Copy link
Copy Markdown
Owner

Résumé

  • Migration des skills agents depuis connector_configs.settings (JSON sans versioning) vers une table dédiée agent_skills avec versioning complet
  • Même pattern que prompt_templates : version, is_active, created_by_id, timestamps
  • API REST dédiée + adaptation frontend + suppression du bootstrap legacy

Changements

  • Nouvelle table agent_skills (migration Alembic 0014 + data migration)
  • Nouveau service AgentSkillsService (CRUD, versioning, activation, seed)
  • Nouveaux endpoints : GET/POST /api/v1/agents/{name}/skills, POST activate
  • resolve_skills() lit depuis la nouvelle table (fallback SKILL.md préservé)
  • GET /connectors backward-compatible (source = nouvelle table)
  • Frontend ConnectorsPage branché sur la nouvelle API
  • Suppression de skill_bootstrap.py et variables d'env associées

Issue liée

Closes #29

Tests exécutés

cd backend && pytest -q
# 637 passed, 1 failed (test_trading_config — préexistant hors scope)

Risques

  • Erreurs TS frontend préexistantes (hors scope — TradingViewChart, OrdersPage, BacktestsPage)
  • 1 test backend instable préexistant (test_decision_mode_changes_risk_limits)

Checklist

simodev25 added 16 commits June 21, 2026 16:34
Add the AgentSkill SQLAlchemy model and corresponding Pydantic schemas for
creating, listing and returning agent skill versions. This is phase 1 of
GH-29: introduces the DB model, registration in models package, and input/output
validation. Verified by running static type checks and ensuring no secrets or
large binaries are included.

Files: backend/app/db/models/agent_skill.py, backend/app/db/models/__init__.py,
backend/app/schemas/agent_skill.py
Add Alembic migration that creates the agent_skills table and migrates
legacy connector settings into the new table (phase 3 of GH-29).

Verified: only backend/alembic/versions/0014_agent_skills_table.py is staged.
@simodev25
simodev25 merged commit d34506d into main Jun 21, 2026
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Refactoring : versionner les skills des agents (table dédiée comme prompt_templates)

1 participant