fix/ci-deploy-reset #6

Merged
starmen1265 merged 19 commits from fix/ci-deploy-reset into main 2026-03-11 14:32:51 +08:00
Owner
No description provided.
starmen1265 added 18 commits 2026-03-11 14:31:59 +08:00
- TestPromptTemplatesExist: 4 tests for template file existence
- TestPromptLoader: 6 tests for loading and rendering templates
- Tests fail (RED phase) - no templates or loader implemented yet

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Test format_success returns valid card with green theme
- Test format_error returns red theme
- Test format_info returns blue theme
- Test format with buttons includes actions element
- Test format_paginated adds [N/M] marker
- Test card has required structure (schema 2.0, config, elements)

TDD RED phase - tests will fail until implementation is added.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- CardTheme enum with SUCCESS (green), ERROR (red), INFO (blue), WARNING (orange)
- CardButton dataclass with text, value dict, and button_type

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- prompts/__init__.py: Package marker
- context_recovery.md: Session context recovery prompt
- command_mapping.md: User input to GSD command mapping
- error_recovery.md: User-friendly error message generation

All templates use {{variable}} syntax for substitution.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Test SKILL.md file exists at skill/SKILL.md
- Test SKILL.md has valid YAML frontmatter
- Test SKILL.md has name field
- Test SKILL.md has description field
- Test description contains /gsd: trigger pattern

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- format_success() creates card with green theme
- format_error() creates card with red theme
- format_info() creates card with blue theme
- format_paginated() adds [N/M] marker
- _build_card() creates three-zone structure (header/elements/actions)
- _build_actions() creates interactive button elements

All 6 tests pass. Card JSON uses schema 2.0 with lark_md content.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- PromptLoader loads and renders markdown templates
- get() returns raw template content (cached)
- render() substitutes {{variable}} placeholders
- Missing variables left as-is (safe substitution)
- Default template_dir points to prompts/ directory

All 10 tests pass.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- YAML frontmatter with name: gsd-openclaw
- Description contains /gsd:* trigger patterns
- Documents all supported GSD commands
- Explains project context switching

Requirements: OCLW-01, OCLW-02

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- SUMMARY.md: Execution summary with 3 tasks completed
- STATE.md: Updated to Phase 2, plan 3/3 complete
- REQUIREMENTS.md: OCLW-02 marked complete

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Created SUMMARY.md with plan execution results
- Updated STATE.md with 02-01 decision
- Marked OCLW-01, OCLW-04 requirements complete
- ROADMAP.md already reflects Phase 2 completion

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Created 02-02-SUMMARY.md with plan execution details
- Updated STATE.md with Phase 2 decisions
- Updated ROADMAP.md with Phase 2 completion
- All 6 tests pass for FeishuResponseFormatter

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
chore: update project config and gitignore
PR Test / lint (pull_request) Successful in 2s
2d0964ed98
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
starmen1265 added 1 commit 2026-03-11 14:32:12 +08:00
Merge branch 'main' into fix/ci-deploy-reset
PR Test / lint (pull_request) Successful in 1s
330215a163
starmen1265 merged commit b4fd5def87 into main 2026-03-11 14:32:51 +08:00
This repo is archived. You cannot comment on pull requests.
No Reviewers
No Label
1 Participants
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starmen1265/kb-skills#6