From c1d188fcd01b063aa1a2a5068353643e5184a4a5 Mon Sep 17 00:00:00 2001 From: younglim Date: Wed, 24 Jun 2026 15:39:45 +0800 Subject: [PATCH] docs: add OpenSpec 2026-06-30 Oobee improvements specs Initialize OpenSpec in the project and capture critical web-crawling and report-generation behaviors from commits since 8cf8f9d937c into formal normative specifications. Change name: 2026-06-30-oobee-improvements New capability specs: - crawl-rate-control: budget enforcement, adaptive concurrency, circuit breaker - sitemap-resilience: discovery, XSL-safe fetch, image exclusion, accounting - auth-header-isolation: scoped auth, CORS safety, header rewrite minimization - redirect-boundary-enforcement: URL normalization, hostname equivalence, robots.txt - custom-flow-guard-overlay: loop prevention, overlay continuity, closed-page safety - report-artifact-resilience: retry accounting, EPERM tolerance, JSONL integrity --- .cline/skills/openspec-apply-change/SKILL.md | 159 ++++++++++ .../skills/openspec-archive-change/SKILL.md | 117 +++++++ .cline/skills/openspec-explore/SKILL.md | 287 ++++++++++++++++++ .cline/skills/openspec-propose/SKILL.md | 111 +++++++ .cline/skills/openspec-sync-specs/SKILL.md | 147 +++++++++ .clinerules/workflows/opsx-apply.md | 152 ++++++++++ .clinerules/workflows/opsx-archive.md | 157 ++++++++++ .clinerules/workflows/opsx-explore.md | 169 +++++++++++ .clinerules/workflows/opsx-propose.md | 104 +++++++ .clinerules/workflows/opsx-sync.md | 140 +++++++++ .../.openspec.yaml | 2 + .../2026-06-30-oobee-improvements/README.md | 3 + .../2026-06-30-oobee-improvements/design.md | 27 ++ .../2026-06-30-oobee-improvements/proposal.md | 28 ++ .../specs/auth-header-isolation/spec.md | 37 +++ .../specs/crawl-rate-control/spec.md | 37 +++ .../specs/custom-flow-guard-overlay/spec.md | 44 +++ .../redirect-boundary-enforcement/spec.md | 48 +++ .../specs/report-artifact-resilience/spec.md | 71 +++++ .../specs/sitemap-resilience/spec.md | 48 +++ .../2026-06-30-oobee-improvements/tasks.md | 17 ++ 21 files changed, 1905 insertions(+) create mode 100644 .cline/skills/openspec-apply-change/SKILL.md create mode 100644 .cline/skills/openspec-archive-change/SKILL.md create mode 100644 .cline/skills/openspec-explore/SKILL.md create mode 100644 .cline/skills/openspec-propose/SKILL.md create mode 100644 .cline/skills/openspec-sync-specs/SKILL.md create mode 100644 .clinerules/workflows/opsx-apply.md create mode 100644 .clinerules/workflows/opsx-archive.md create mode 100644 .clinerules/workflows/opsx-explore.md create mode 100644 .clinerules/workflows/opsx-propose.md create mode 100644 .clinerules/workflows/opsx-sync.md create mode 100644 openspec/changes/2026-06-30-oobee-improvements/.openspec.yaml create mode 100644 openspec/changes/2026-06-30-oobee-improvements/README.md create mode 100644 openspec/changes/2026-06-30-oobee-improvements/design.md create mode 100644 openspec/changes/2026-06-30-oobee-improvements/proposal.md create mode 100644 openspec/changes/2026-06-30-oobee-improvements/specs/auth-header-isolation/spec.md create mode 100644 openspec/changes/2026-06-30-oobee-improvements/specs/crawl-rate-control/spec.md create mode 100644 openspec/changes/2026-06-30-oobee-improvements/specs/custom-flow-guard-overlay/spec.md create mode 100644 openspec/changes/2026-06-30-oobee-improvements/specs/redirect-boundary-enforcement/spec.md create mode 100644 openspec/changes/2026-06-30-oobee-improvements/specs/report-artifact-resilience/spec.md create mode 100644 openspec/changes/2026-06-30-oobee-improvements/specs/sitemap-resilience/spec.md create mode 100644 openspec/changes/2026-06-30-oobee-improvements/tasks.md diff --git a/.cline/skills/openspec-apply-change/SKILL.md b/.cline/skills/openspec-apply-change/SKILL.md new file mode 100644 index 00000000..db4d8ce2 --- /dev/null +++ b/.cline/skills/openspec-apply-change/SKILL.md @@ -0,0 +1,159 @@ +--- +name: openspec-apply-change +description: Implement tasks from an OpenSpec change. Use when the user wants to start implementing, continue implementation, or work through tasks. +license: MIT +compatibility: Requires openspec CLI. +metadata: + author: openspec + version: "1.0" + generatedBy: "1.4.1" +--- + +Implement tasks from an OpenSpec change. + +**Input**: Optionally specify a change name. If omitted, check if it can be inferred from conversation context. If vague or ambiguous you MUST prompt for available changes. + +**Steps** + +1. **Select the change** + + If a name is provided, use it. Otherwise: + - Infer from conversation context if the user mentioned a change + - Auto-select if only one active change exists + - If ambiguous, run `openspec list --json` to get available changes and use the **AskUserQuestion tool** to let the user select + + Always announce: "Using change: " and how to override (e.g., `/opsx:apply `). + +2. **Check status to understand the schema** + ```bash + openspec status --change "" --json + ``` + Parse the JSON to understand: + - `schemaName`: The workflow being used (e.g., "spec-driven") + - `planningHome`, `changeRoot`, and `actionContext`: planning scope and edit constraints + - Which artifact contains the tasks (typically "tasks" for spec-driven, check status for others) + +3. **Get apply instructions** + + ```bash + openspec instructions apply --change "" --json + ``` + + This returns: + - `contextFiles`: artifact ID -> array of concrete file paths (varies by schema - could be proposal/specs/design/tasks or spec/tests/implementation/docs) + - Progress (total, complete, remaining) + - Task list with status + - Dynamic instruction based on current state + + **Handle states:** + - If `state: "blocked"` (missing artifacts): show message, suggest using openspec-continue-change + - If `state: "all_done"`: congratulate, suggest archive + - Otherwise: proceed to implementation + + **Workspace guard:** If status JSON reports `actionContext.mode: "workspace-planning"` and `allowedEditRoots` is empty, explain that full workspace apply is not supported in this slice. Treat linked repos and folders as read-only context, ask the user to select an affected area through an explicit implementation workflow, and STOP before editing files. + +4. **Read context files** + + Read every file path listed under `contextFiles` from the apply instructions output. + The files depend on the schema being used: + - **spec-driven**: proposal, specs, design, tasks + - Other schemas: follow the contextFiles from CLI output + +5. **Show current progress** + + Display: + - Schema being used + - Progress: "N/M tasks complete" + - Remaining tasks overview + - Dynamic instruction from CLI + +6. **Implement tasks (loop until done or blocked)** + + For each pending task: + - Show which task is being worked on + - Make the code changes required + - Keep changes minimal and focused + - Mark task complete in the tasks file: `- [ ]` → `- [x]` + - Continue to next task + + **Pause if:** + - Task is unclear → ask for clarification + - Implementation reveals a design issue → suggest updating artifacts + - Error or blocker encountered → report and wait for guidance + - User interrupts + +7. **On completion or pause, show status** + + Display: + - Tasks completed this session + - Overall progress: "N/M tasks complete" + - If all done: suggest archive + - If paused: explain why and wait for guidance + +**Output During Implementation** + +``` +## Implementing: (schema: ) + +Working on task 3/7: +[...implementation happening...] +✓ Task complete + +Working on task 4/7: +[...implementation happening...] +✓ Task complete +``` + +**Output On Completion** + +``` +## Implementation Complete + +**Change:** +**Schema:** +**Progress:** 7/7 tasks complete ✓ + +### Completed This Session +- [x] Task 1 +- [x] Task 2 +... + +All tasks complete! Ready to archive this change. +``` + +**Output On Pause (Issue Encountered)** + +``` +## Implementation Paused + +**Change:** +**Schema:** +**Progress:** 4/7 tasks complete + +### Issue Encountered + + +**Options:** +1.