Commit d4105e15f835fd63af3a4cfc2b05e9ad1955e249

Authored by graphlemon
1 parent 8e5b231d

graphlemon: sdd artifact for task 7fc3a7a3-ebe3-48ae-97de-a98f7f3c9d35

.graphlemon/runs/7fc3a7a3-ebe3-48ae-97de-a98f7f3c9d35/sdd.md 0 → 100644
  1 +The planner workflow (graphlemon Work Node) completed. It took the approved PRD ("修复 /#/skills 页面点击某个 skill 后不显示真实内容的 bug") and produced a full SDD for a single Development Unit:
  2 +
  3 +- Root cause: `src/skill_query.py` only reads DB tables (`skill`, `skill_iteration`); nothing reads the real `skills/<skill_id>/SKILL.md` files on disk that a recent migration created.
  4 +- Fix scope: add `get_skill_content()` to `skill_query.py` (with `SkillContentMissingError` and two-layer path-traversal protection reusing `skill_update._skill_file_path()`), a new `GET /api/skills/:skill_id/content` endpoint in `backend_server.py`, and a new "Skill 内容" panel in `frontend/app.js`'s skill audit page — plain `<pre class="code">` text, no Markdown/highlighting deps.
  5 +- Tests: 7 new cases across `test_skill_query.py` and `test_backend_server.py`, including two path-traversal sub-cases; full `python3 -m unittest discover -s src` suite must stay green.
  6 +- Explicitly out of scope: no changes to `skill_update.py`, no schema/migration changes, no single-file preview of support files.
  7 +
  8 +This SDD artifact is ready to hand off to the Coder node for implementation. No further action was taken since this is the planner-stage deliverable.
0 9 \ No newline at end of file
... ...