Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ pre-commit run --all-files # run the gitleaks hook manually

## Conventions

- NZ English in comments and docs. No hyperbole.
- British/Commonwealth English in comments and docs. No hyperbole.
- TDD; golden files for table output (`-update` to regenerate, then eyeball
the diff).
- After changing commands, architecture or a gotcha above, update this
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,6 @@ The binary's `version` output is injected from the tag via ldflags.
## Conventions

See [`CLAUDE.md`](CLAUDE.md) — the canonical reference for coding style,
architectural rules, and gotchas (NZ English, the no-config-file and
architectural rules, and gotchas (British/Commonwealth English, the no-config-file and
keychain-only invariants, golden-file workflow, doc-sync rule). It's
loaded automatically by Claude Code but reads as a normal project doc.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ go install github.com/tanem/mt5-pnl-cli@latest
mt5-pnl-cli set-passphrase

# once: tell the CLI where the synced snapshot lives
export MT5_PNL_SNAPSHOT=~/Dropbox/mt5/snapshot.json.gz.age
export MT5_PNL_SNAPSHOT=~/snapshots/mt5.json.gz.age

mt5-pnl-cli pnl # last 30 days, grouped by week
mt5-pnl-cli accounts # balances, equity, freshness
Expand Down Expand Up @@ -143,7 +143,7 @@ $ mt5-pnl-cli pnl --from 2026-01-01 --to 2026-01-31 --by month --accounts "Trend
defaults to today). `--last` runs from N units ago through today
inclusive, so `30d` covers 31 calendar days. Dates, `--last` and
"today" are all interpreted in **UTC**, and each deal is bucketed by
its UTC day — so from a far-offset timezone like NZ, the UTC day can
its UTC day — so from a far-east timezone (e.g., UTC+12), the UTC day can
differ from your local day near midnight.
- `--by day|week|month` (default `week`; weeks start Monday, dates are
UTC).
Expand Down
6 changes: 3 additions & 3 deletions docs/superpowers/plans/2026-06-13-consumer-docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

**Tech Stack:** Markdown; GitHub Actions; codecov-action v5; pre-commit + gitleaks.

**Conventions:** Working directory is `~/Code/mt5-pnl-cli`, branch `docs/consumer-docs`. NZ English. `CODECOV_TOKEN` is already set in repo secrets; Renovate covers the repo (maintainer confirmed both).
**Conventions:** Working directory is `<repo-root>`, branch `docs/consumer-docs`. British/Commonwealth English. `CODECOV_TOKEN` is already set in repo secrets; Renovate covers the repo (maintainer confirmed both).

---

Expand Down Expand Up @@ -254,7 +254,7 @@ go install github.com/tanem/mt5-pnl-cli@latest
mt5-pnl-cli set-passphrase

# once: tell the CLI where the synced snapshot lives
export MT5_PNL_SNAPSHOT=~/Dropbox/mt5/snapshot.json.gz.age
export MT5_PNL_SNAPSHOT=~/snapshots/mt5.json.gz.age

mt5-pnl-cli pnl # last 30 days, grouped by week
mt5-pnl-cli accounts # balances, equity, freshness
Expand Down Expand Up @@ -520,7 +520,7 @@ The binary's `version` output is injected from the tag via ldflags.
## Conventions

See [`CLAUDE.md`](CLAUDE.md) — the canonical reference for coding style,
architectural rules, and gotchas (NZ English, the no-config-file and
architectural rules, and gotchas (British/Commonwealth English, the no-config-file and
keychain-only invariants, golden-file workflow, doc-sync rule). It's
loaded automatically by Claude Code but reads as a normal project doc.
````
Expand Down
12 changes: 6 additions & 6 deletions docs/superpowers/plans/2026-06-13-mt5-pnl-cli-v1.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
**Tech Stack:** Go ≥1.23 stdlib `flag`; `filippo.io/age`, `github.com/zalando/go-keyring`, `golang.org/x/term`; GitHub Actions CI; GoReleaser.

**Conventions for the whole plan:**
- Working directory is the repo root `~/Code/mt5-pnl-cli`. All work happens on branch `feat/v1`.
- Working directory is the repo root `<repo-root>`. All work happens on branch `feat/v1`.
- TDD: in Go, a test that fails to compile with `undefined: X` is a valid RED for a new symbol.
- Run `gofmt -w .` before every commit.
- NZ English in comments and docs (behaviour, realise). No hyperbole.
- British/Commonwealth English in comments and docs (behaviour, realise). No hyperbole.

---

Expand All @@ -26,7 +26,7 @@ Scaffolding only — no behaviour, so no tests (TDD exception for configuration)
- [ ] **Step 1: Branch and init module**

```bash
cd ~/Code/mt5-pnl-cli
cd <repo-root>
git checkout -b feat/v1
go mod init github.com/tanem/mt5-pnl-cli
go get filippo.io/age@latest github.com/zalando/go-keyring@latest golang.org/x/term@latest
Expand All @@ -45,7 +45,7 @@ Expected: `go.mod` created with the three requires (plus indirect deps).
- [ ] **Step 3: Copy the MIT licence**

```bash
cp ~/Code/mt5-pnl-exporter/LICENSE LICENSE
cp <mt5-pnl-exporter-root>/LICENSE LICENSE
```

(Keeps the same `Copyright (c) 2026 Tane Morgan` line.)
Expand All @@ -55,7 +55,7 @@ cp ~/Code/mt5-pnl-exporter/LICENSE LICENSE
```bash
mkdir -p schema
curl -fsSL https://raw.githubusercontent.com/tanem/mt5-pnl-exporter/v1.0.3/schema/snapshot.schema.json -o schema/snapshot.schema.json
diff schema/snapshot.schema.json ~/Code/mt5-pnl-exporter/schema/snapshot.schema.json
diff schema/snapshot.schema.json <mt5-pnl-exporter-root>/schema/snapshot.schema.json
```

Expected: `diff` prints nothing (v1.0.3 matches the exporter's current main).
Expand Down Expand Up @@ -2454,7 +2454,7 @@ go run github.com/goreleaser/goreleaser/v2@latest check # validate .goreleaser

## Conventions

- NZ English in comments and docs. No hyperbole.
- British/Commonwealth English in comments and docs. No hyperbole.
- TDD; golden files for table output (`-update` to regenerate, then eyeball
the diff).
- After changing commands, architecture or a gotcha above, update this
Expand Down
2 changes: 1 addition & 1 deletion docs/superpowers/specs/2026-06-13-consumer-docs-design.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ Exporter skeleton, Go content:
Explicitly note this is simpler than the exporter's flow: no package
index, no OIDC, no manual approval gate; the tag is the trigger and
the GitHub Release is the artefact.
- **Conventions**: pointer to CLAUDE.md as canonical (NZ English, TDD,
- **Conventions**: pointer to CLAUDE.md as canonical (British/Commonwealth English, TDD,
doc-sync rule, no-config-file and keychain-only invariants).

## SECURITY.md design
Expand Down
Loading