Progress update

From markerikson/opencode-config-example · View interactive version

Progress update is an AI agent skill from the GitHub repository markerikson/opencode-config-example. Record work completed during a session. Appends to a daily progress file via the `devplans.ts` script.

How to use this skill

Skill file

Progress Update Skill

Record work completed during a session. Appends to a daily progress file via the devplans.ts script.

When to Use

Critical Rule: Never Read the Progress File to Append

The devplans.ts script handles all file mechanics: creation, insertion ordering, section

management. Do NOT read the progress file. Instead:

  1. Run devplans.ts progress to get metadata and current Next Steps
  2. Compose your entry
  3. Pipe JSON to devplans.ts progress append

This eliminates context bloat from reading growing files, prevents non-chronological insertions,

and ensures the Summary and Next Steps sections stay consistent.

File Location and Naming

Progress files live in {dev-plans}/{project}/progress-updates/YYYY-MM-DD-progress.md.

The script handles file creation. If it's before 6:00 AM local time, the script uses the

previous day's date (late-night sessions are continuations, not new days). The output includes

dateShifted: true when this happens.

Workflow

Step 1: Get Current State

bun ~/.config/opencode/scripts/devplans.ts progress

Returns:

{
  "file": "~/projects/dev-plans/.../2026-02-16-progress.md",
  "tempFile": "~/projects/dev-plans/.../progress-updates/.tmp-entry-1739745000000.json",
  "time": "14:30",
  "status": "existing",
  "effectiveDate": "2026-02-16",
  "dateShifted": false,
  "nextSteps": ["Commit Phase 4.5 code", "Run data quality audit"]
}

Use nextSteps to understand what was planned — update or replace in your entry.

Use tempFile as the write destination in Step 3 (auto-approved path, no permission prompts).

Step 2: Compose Your Entry

Build a JSON object:

{
  "slug": "4.5.3 Execution Simulator",
  "content": "Core backtesting engine — replays historical stock signals as hypothetical options trades.\nThis is where the GO/NO-GO answer comes from.\n\n`runOptionsReplay(signals, params)` iterates signals, determines option type, finds strike\nmatching target delta, prices via synthetic pricer, applies slippage, runs day-by-day exit\nrule simulation.\n\nDiffLoupe: low risk, 3 low findings (all acceptable for internal tooling).\n\n56 tests, typecheck clean, full suite 1906 pass.\n\n### Files Changed\n\n- `src/backtest/options/signal-replay.ts` — replay engine, strike selection, matrix runner (310 lines)\n- `src/backtest/options/signal-replay.test.ts` — 56 tests (397 lines)",
  "nextSteps": [
    "Run remaining Track A experiments",
    "Commit all Phase 4.5 code",
    "4.5.8 (17yih5wg): Data quality audit"
  ]
}

Fields:

Step 3: Write JSON and Append

The tempFile from Step 1 is a pre-created scaffold inside dev-plans (auto-approved, no permission prompts).

  1. Read the tempFile (required before overwriting — it's a tiny 3-line scaffold)
  2. Write your entry JSON to the same path
  3. Run the append command:
bun ~/.config/opencode/scripts/devplans.ts progress append <tempFile>

The script reads the file, deletes it automatically, then:

Entry Content Guidelines

Target: 30-50 lines per entry. Enough for a real narrative, not a stub.

Always Include

with 1-sentence purpose descriptions. This is the most valuable part.

bullet list. For more, a compact table or grouped by created/modified.

Include When Relevant

Format: - [ ] {project} QUIRKS: {learning} → {suggested section}

Omit

Entry Example (~40 lines)

Core backtesting engine — replays historical stock signals as hypothetical options trades.
This is where the GO/NO-GO answer comes from.

`runOptionsReplay(signals, params)` — for each signal: determines option type, finds strike
matching target delta, estimates IV, prices via synthetic pricer, applies slippage, then runs
day-by-day simulation checking exit rules (take profit, stop loss, DTE close, time stop, or
signal exit). Computes position sizing (floor of capital / (price * 100), min 1 contract).

`runReplayMatrix(signals, matrix, capitalPerTrade)` — Cartesian product sweep over
deltas × DTEs × exit rules × slippage models.

DiffLoupe: low risk. Three low findings (matrix O(n⁴), linear interpolation, no input
validation) — all acceptable for internal backtesting tool.

56 tests, typecheck clean, full suite 1906 pass.

### Files Changed

- `src/backtest/options/signal-replay.ts` — replay engine, strike selection, matrix runner (310 lines)
- `src/backtest/options/signal-replay.test.ts` — 56 tests (397 lines)

### Notes

- Strike selection uses linear interpolation between available strikes when exact delta match
  unavailable — produces more realistic results than nearest-strike snapping.
- Matrix runner returns per-combo results with Sharpe, win rate, total return for comparison.

Next Steps Section

3-5 items max. Replaced wholesale on each entry. Answers: "What should the next session pick up?"

NOT a running task list. NOT carried forward from previous entries. The agent writes fresh

next steps each time based on current state.

When the project uses Dex, reference task IDs:

- 4.5.8 (17yih5wg): Backtest data quality audit
- Commit Phase 4.5 code (6 files staged)
- Run Track A experiments with wider stop-loss

When no external tracker, just list the immediate priorities:

- Implement the fork changes to compaction.ts
- Test with actual compaction trigger
- Write up findings for team review

Summary Section

Auto-maintained by the script. Do NOT write or edit it manually. The script builds it from

entry headings:

## Summary

- 02:58 — 4.5.2 Slippage Models
- 11:56 — 4.5.3 Execution Simulator
- 15:10 — 4.5.6 Combined GO/NO-GO Result

Common Pitfalls

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.