Skip to content

Commit abcde7d

Browse files
committed
fix(skills): Make sure digest file is written/read correctly
1 parent e75e287 commit abcde7d

2 files changed

Lines changed: 28 additions & 7 deletions

File tree

.agents/skills/track-framework-updates/SKILL.md

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,12 +107,20 @@ For each release or RFC that plausibly needs SDK work, draft one concrete, actio
107107

108108
### Step 6: Write output artifacts
109109

110-
Produce **three files** in the skill's `output/` directory:
110+
The `collect_updates.py` script in Step 1 prints its output path, e.g.:
111111

112-
1. **`output/framework-updates-raw.json`** — already written by Step 1.
113-
2. **`output/framework-updates-digest.json`** — structured, machine-readable digest. Follow the schema in `assets/digest-schema.json`.
114-
3. **`output/framework-updates-digest.md`** — human-readable digest. Follow the structure in `assets/digest-template.md`:
115-
- Group by Client-Side / Server-Side / Meta-Framework.
112+
```
113+
Wrote /abs/path/to/.agents/skills/track-framework-updates/output/framework-updates-raw.json: ...
114+
```
115+
116+
Use that printed path to derive the output directory. All three files must be written to the **same directory** as `framework-updates-raw.json` — never relative paths like `output/` from the workspace root.
117+
118+
Produce **three files**:
119+
120+
1. The raw JSON was already written by Step 1 — no action needed.
121+
2. **`<output-dir>/framework-updates-digest.json`** — structured, machine-readable digest. Follow the schema in `assets/digest-schema.json`.
122+
3. **`<output-dir>/framework-updates-digest.md`** — human-readable digest. Follow the structure in `assets/digest-template.md`:
123+
- Group by Client-Side / Server-Side / Meta-Framework / Platform / Libraries.
116124
- Omit frameworks with no activity.
117125
- Include a "Run notes" section only if a fetcher reported errors.
118126

.agents/skills/track-framework-updates/scripts/write_job_summary.py

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
from __future__ import annotations
1212

1313
import json
14+
import os
1415
import sys
1516

1617

@@ -85,8 +86,20 @@ def main() -> int:
8586
digest = f.read().strip()
8687
if digest:
8788
lines.append(digest)
88-
except OSError:
89-
lines.append("_Digest file not found._")
89+
except OSError as e:
90+
lines.append(f"_Digest file not found: `{digest_path}` ({e})_")
91+
lines.append("")
92+
# List what is actually in the output dir to help diagnose path mismatches
93+
output_dir = os.path.dirname(os.path.abspath(digest_path))
94+
try:
95+
found = os.listdir(output_dir)
96+
if found:
97+
lines.append(f"Files present in `{output_dir}`:")
98+
lines.extend(f"- `{name}`" for name in sorted(found))
99+
else:
100+
lines.append(f"`{output_dir}` exists but is empty.")
101+
except OSError:
102+
lines.append(f"Output directory not found: `{output_dir}`")
90103

91104
# Run metrics at the bottom
92105
cost_str = (

0 commit comments

Comments
 (0)