Skip to content

feat: news-summary v4 — 教育+投資分析ブリーフィングスキル (v0.15.0.0)#1

Open
tomoki0603 wants to merge 12 commits intomainfrom
feat/news-summary-v4
Open

feat: news-summary v4 — 教育+投資分析ブリーフィングスキル (v0.15.0.0)#1
tomoki0603 wants to merge 12 commits intomainfrom
feat/news-summary-v4

Conversation

@tomoki0603
Copy link
Copy Markdown
Owner

Summary

新スキル /news-summary v4.0 を追加。

日本株式市場向けの教育+投資判断資料スキル。v2(単一ファイル出力)から全面再設計。

news-summary/SKILL.md.tmpl (910行)

  • レイヤー設計: Layer 1(速報)+ Layer 2(Obsidian callout折りたたみ教育ブロック)
  • Chrome MCP統合: 有料コンテンツ(四季報・NYT)に読み取り専用アクセス。未接続時はWebFetch/WebSearchにフォールバック
  • 銘柄ノート自動更新 (Stocks/{code}-{name}.md): ## 自分のメモ セクションは絶対に変更しない保護機構
  • 生きた用語集 (Glossary/{macro,market,geopolitics}/): 因果関係付き、最大10エントリ/用語
  • 週次サマリー (Weekly/{YEAR}-W{NN}.md): 冪等性チェック付き
  • Mermaid xychart: 指数5日推移・セクター比較(Obsidianネイティブ)
  • Chart.js ローソク足 + ボリンジャーバンド(サンプル標準偏差)HTMLファイル

アドバーサリーレビュー後に追加した修正 (3件):

  • TZ="Asia/Tokyo" — 全date計算をJSTに統一
  • グロッサリーファイル名: | をハイフンに置換(Windows NTFS対応)
  • 銘柄ノートのニュースエントリ冪等性チェック(同日3件以上でスキップ)

supporting changes:

  • CLAUDE.md: スキルルーティングルール追加
  • careful/freeze/guard/land-and-deploy/ship/unfreeze SKILL.md: sensitive: true 伝搬

Test Coverage

スキルテンプレート変更のためコードパスなし。
既存の skill-validationgen-skill-docs テストスイートで検証:

  • Tests: 605 pass / 12 fail (12件は既存のWindows環境問題 — bun PATH, gstack-slug実行ビット)

Pre-Landing Review

3件の informational 修正 (AUTO-FIXED): JSTタイムゾーン、| filename sanitization、news idempotency check

Plan Completion

7/7 DONE — 全計画項目完了

Test plan

  • bun run gen:skill-docs — エラーなく生成完了 (1296行)
  • bun test — 605 pass / 12 fail (12件は既存の Windows 環境問題)
  • SKILL.md frontmatter 検証済み (MCP tool名・YAML構造)
  • アドバーサリーレビュー実施済み、3件の修正を適用

🤖 Generated with Claude Code

start and others added 12 commits March 31, 2026 18:29
Full redesign from v2 single-file to structured Obsidian knowledge base.
Layer design (speed briefing + education callouts), stock notes with
自分のメモ protection, living glossary, weekly summaries, Chart.js
candlestick charts, Chrome MCP integration for paid content access.

Adversarial review fixes: JST timezone, | in filename sanitization,
news entry idempotency check for stock notes.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
CSO audit findings:
- Remove mcp__Claude_in_Chrome__computer from allowed-tools.
  The skill only needs read-only Chrome MCP tools (navigate,
  get_page_text, read_page, find). computer allows clicks/typing
  which contradicts the read-only safety intent.
- Replace hardcoded Obsidian vault path with OBSIDIAN_VAULT env
  var (falls back to default). Add VAULT_NOT_FOUND detection
  with AskUserQuestion prompt for first-run configuration.
5 gaps identified in CEO review of first execution output:
- Add indicator retry logic (2 attempts before marking 要確認)
- Require stock notes for ALL high+medium impact stocks (min 5/run)
- Prohibit empty file creation (0-byte glossary files)
- Set minimum depth for low-impact educational callouts (2-3 lines)
- Add completeness check: if >3 indicators missing, retry before output
Stock notes were skeleton-only (sector + market, everything else "未取得").
Now the template:
- Adds 6 financial metrics to basic info (price, market cap, PER, PBR,
  dividend yield, 52-week range) with WebSearch retrieval instruction
- Adds "今日のポイント" section for per-stock investment analysis
- Updates Step 8-B to refresh price and daily analysis on each run
- Changes 四季報 fallback text from "未取得" to actionable next-step
* docs: Session Intelligence Layer design doc

Frames gstack as the persistent brain that survives Claude's ephemeral
context window. Architecture diagram, 5-layer feature breakdown, and
research sources from claude-mem, Anthropic engineering blog, CodeScene,
and Claude Code Agent Teams.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* feat: add context intelligence, health, swarm, and refactoring to roadmap

9 new TODOS across 4 sections based on Claude Code ecosystem research:
- Context Intelligence (P1): preamble artifact recovery, session timeline,
  cross-session injection, /checkpoint skill, vision doc
- Health (P1): /health dashboard with CodeScene MCP integration option,
  /health as /ship quality gate
- Swarm (P2): extract Review Army into reusable multi-agent primitive
- Refactoring (P2): /refactor-prep for pre-refactor token hygiene

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…wiring (v0.13.8.0) (garrytan#647)

* refactor: remove dead contributor mode, replace with operational self-improvement slot

Contributor mode never fired in 18 days of heavy use (required manual opt-in
via gstack-config, gated behind _CONTRIB=true, wrote disconnected markdown).

Removes: generateContributorMode(), _CONTRIB bash var, 2 E2E tests, touchfile
entry, doc references. Cleans up skip-lists in plan-ceo-review, autoplan,
review resolver, and document-release templates.

The operational self-improvement system (next commit) replaces this slot with
automatic learning capture that requires no opt-in.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* feat: operational self-improvement — every skill learns from failures

Adds universal operational learning capture to the preamble completion protocol.
At the end of every skill session, the agent reflects on CLI failures, wrong
approaches, and project quirks, logging them as type "operational" to the
learnings JSONL. Future sessions surface these automatically.

- generateCompletionStatus(ctx) now includes operational capture section
- Preamble bash shows top 3 learnings inline when count > 5
- New "operational" type in generateLearningsLog alongside pattern/pitfall/etc
- Updated unit tests + operational seed entry in learnings E2E

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* feat: wire learnings into all insight-producing skills

Adds LEARNINGS_SEARCH and/or LEARNINGS_LOG to 10 skill templates that
produce reusable insights but were previously disconnected from the
learning system:

- office-hours, plan-ceo-review, plan-eng-review: add LOG (had SEARCH)
- plan-design-review: add both SEARCH + LOG (had neither)
- design-review, design-consultation, cso, qa, qa-only: add both
- retro: add SEARCH (had LOG)

13 skills now fully participate in the learning loop (read + write).
Every review, QA, investigation, and design session both consults prior
learnings and contributes new ones.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* test: add operational-learning E2E test (gate-tier)

Validates the write path: agent encounters a CLI failure, logs an
operational learning to JSONL via gstack-learnings-log. Replaces the
removed contributor-mode E2E test.

Setup: temp git repo, copy bin scripts, set GSTACK_HOME.
Prompt: simulated npm test failure needing --experimental-vm-modules.
Assert: learnings.jsonl exists with type=operational entry.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* fix: learnings-show E2E slug mismatch — seed at computed slug, not hardcoded

The test seeded learnings at projects/test-project/ but gstack-slug computes
the slug from basename(workDir) when no git remote exists. The agent's search
looked at the wrong path and found nothing.

Fix: compute slug the same way gstack-slug does (basename + sanitize) and
seed the learnings there.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* chore: bump version and changelog (v0.13.8.0)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…covery (v0.15.0.0) (garrytan#733)

* feat: session timeline binaries (gstack-timeline-log + gstack-timeline-read)

New binaries for the Session Intelligence Layer. gstack-timeline-log appends
JSONL events to ~/.gstack/projects/$SLUG/timeline.jsonl. gstack-timeline-read
reads, filters, and formats timeline data for /retro consumption.

Timeline is local-only project intelligence, never sent anywhere. Always-on
regardless of telemetry setting.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* feat: preamble context recovery + timeline events + predictive suggestions

Layers 1-3 of the Session Intelligence Layer:
- Timeline start/complete events injected into every skill via preamble
- Context recovery (tier 2+): lists recent CEO plans, checkpoints, reviews
- Cross-session injection: LAST_SESSION and LATEST_CHECKPOINT for branch
- Predictive skill suggestion from recent timeline patterns
- Welcome back message synthesis
- Routing rules for /checkpoint and /health

Timeline writes are NOT gated by telemetry (local project intelligence).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* feat: /checkpoint + /health skills (Layers 4-5)

/checkpoint: save/resume/list working state snapshots. Supports cross-branch
listing for Conductor workspace handoff. Session duration tracking.

/health: code quality scorekeeper. Wraps project tools (tsc, biome, knip,
shellcheck, tests), computes composite 0-10 score, tracks trends over time.
Auto-detects tools or reads from CLAUDE.md ## Health Stack.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* chore: regenerate SKILL.md files + add timeline tests

9 timeline tests (all passing) mirroring learnings.test.ts pattern.
All 34 SKILL.md files regenerated with new preamble (context recovery,
timeline events, routing rules for /checkpoint and /health).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* chore: bump version and changelog (v0.15.0.0)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* docs: update self-learning roadmap post-Session Intelligence

R1-R3 marked shipped with actual versions. R4 becomes Adaptive Ceremony
(trust as separate policy engine, scope-aware, gradual degradation). R5
becomes /autoship (resumable state machine, not linear chain). R6-R7
unbundled from old R5. Added State Systems reference, Risk Register
(Codex-reviewed), and validation metrics for R4.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* test: E2E tests for Session Intelligence (timeline, recovery, checkpoint)

3 gate-tier E2E tests:
- timeline-event-flow: binary data flow round-trip (no LLM)
- context-recovery-artifacts: seeded artifacts appear in preamble
- checkpoint-save-resume: checkpoint file created with YAML frontmatter

Also fixes package.json version sync (0.14.6.0 → 0.15.0.0).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…n#734)

* feat: /design-html works from any starting point — not just design-shotgun

Three routing modes: approved mockup (Case A), CEO plan or design variants
without formal approval (Case B), or clean slate with just a description
(Case C). Each mode asks the right questions via AskUserQuestion instead of
blocking with "no approved design found."

* chore: bump version and changelog (v0.15.1.0)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
…g, state file)

- Extract Chart.js candlestick template to templates/candlestick.html
- Add parallel collection groups for Step 2 data gathering
- Add unified error handling rules table
- Add glossary list to Step 0 for accurate wikilinks
- Add specific URLs for auxiliary sources (Step 2-E)
- Remove hardcoded stock note minimum count
- Add Friday afternoon auto-verification for weekly predictions
- Add .state.json session state file for cross-session tracking
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants