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
12 changes: 12 additions & 0 deletions skills/diary-notion/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,26 @@ description: Push the current Codex work session to the hierarchical Notion work

Split the current Codex session into task-sized entries and push them to Notion.

## Current Implementation Contract

- `$diary-notion` is a row push workflow only. Do not run schema/view ensure unless the user explicitly asks for it.
- `working-diary diary-notion ensure` is the separate maintenance command that guarantees schema v7, native sub-items, 5 core views, and 5 operating views.
- Use Notion native sub-items for containment by setting `parent_index`. If the native relation is not enabled in Notion, still push the rows and report that sub-item activation is needed.
- Treat legacy `Parent Task` / `Sub-items` as compatibility data only. Do not target them directly in JSON.
- Use `Depends On` only for prerequisite links between large top-level main tasks. Never use dependencies for child tasks.
- Never write `"unknown"` as `project`; omit it or leave it blank so the CLI falls back to the command cwd folder name.
- Page bodies render as compact executive bodies: top summary, result checklist, work-at-a-glance table, impact, verification, risks/next action, and appendix.

## Workflow

1. Review the current conversation, tool calls, git branch, and relevant git commits.
2. Split work into task-sized database rows. Branch changes are hard task boundaries; within a branch, split by semantic work unit.
- Create a row for work that has its own status, evidence, code/test output, or can block another task
- Keep tiny check items, raw notes, long SQL/JS snippets, and reference links inside the page body evidence instead of making them separate rows
- Create a separate row only when the work has an independent status, verification/evidence, code change, commit, blocker, or follow-up owner
- Use `parent_index` for containment hierarchy and Notion sub-items; do not model subtasks with dependencies
- Use `depends_on_indices` only for prerequisite links between large top-level tasks
- Mark continued work from an earlier day/session as a new row with the same `task_group` and `carryover=true` when it is still unfinished
3. For each task, produce:
- Language policy:
- Write `title`, `body_intro`, `summary_hints`, `key_changes`, `work_context`, `work_scope`, `approach`, `outcome`, `impact`, `decisions`, `implementation_notes`, `verification`, `risks`, `next_steps`, `support_needed`, `next_action`, and `block_reason` in Korean
Expand Down
12 changes: 12 additions & 0 deletions src/claude_diary/cli/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,14 +230,26 @@

Split the current Codex session into task-sized entries and push them to Notion.

## Current Implementation Contract

- `$diary-notion` is a row push workflow only. Do not run schema/view ensure unless the user explicitly asks for it.
- `working-diary diary-notion ensure` is the separate maintenance command that guarantees schema v7, native sub-items, 5 core views, and 5 operating views.
- Use Notion native sub-items for containment by setting `parent_index`. If the native relation is not enabled in Notion, still push the rows and report that sub-item activation is needed.
- Treat legacy `Parent Task` / `Sub-items` as compatibility data only. Do not target them directly in JSON.
- Use `Depends On` only for prerequisite links between large top-level main tasks. Never use dependencies for child tasks.
- Never write `"unknown"` as `project`; omit it or leave it blank so the CLI falls back to the command cwd folder name.
- Page bodies render as compact executive bodies: top summary, result checklist, work-at-a-glance table, impact, verification, risks/next action, and appendix.

## Workflow

1. Review the current conversation, tool calls, git branch, and relevant git commits.
2. Split work into task-sized database rows. Branch changes are hard task boundaries; within a branch, split by semantic work unit.
- Create a row for work that has its own status, evidence, code/test output, or can block another task
- Keep tiny check items, raw notes, long SQL/JS snippets, and reference links inside the page body evidence instead of making them separate rows
- Create a separate row only when the work has an independent status, verification/evidence, code change, commit, blocker, or follow-up owner
- Use `parent_index` for containment hierarchy and Notion sub-items; do not model subtasks with dependencies
- Use `depends_on_indices` only for prerequisite links between large top-level tasks
- Mark continued work from an earlier day/session as a new row with the same `task_group` and `carryover=true` when it is still unfinished
3. For each task, produce:
- Language policy:
- Write `title`, `body_intro`, `summary_hints`, `key_changes`, `work_context`, `work_scope`, `approach`, `outcome`, `impact`, `decisions`, `implementation_notes`, `verification`, `risks`, `next_steps`, `support_needed`, `next_action`, and `block_reason` in Korean
Expand Down
5 changes: 5 additions & 0 deletions tests/test_codex_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ def test_codex_skills_exist_and_cover_diary_workflows():
assert "Exclude full diffs" in notion_text
assert "in Korean" in notion_text
assert "Notion task database record" in notion_text
assert "Current Implementation Contract" in notion_text
assert "schema v7" in notion_text
assert "native sub-items" in notion_text
assert "Never write `\"unknown\"` as `project`" in notion_text
assert "Use `Depends On` only for prerequisite links" in notion_text


def test_codex_skill_metadata_exists():
Expand Down
4 changes: 4 additions & 0 deletions tests/test_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ def test_slash_and_codex_skill_request_rich_body_fields(self):
assert "Write `title`, `body_intro`" in codex_content
assert "in Korean" in codex_content
assert "Notion task database record" in codex_content
assert "Current Implementation Contract" in codex_content
assert "schema v7" in codex_content
assert "native sub-items" in codex_content
assert "Never write `\"unknown\"` as `project`" in codex_content


class TestInstallSlashCommandSingle:
Expand Down
Loading