/agent-continuity:init-rulesfrom Agent Continuity
Drop a starter set of `.agent/rules/*.md` template files (strict-implementation-lock, rules-architect-protocol, rules-git-workflow, rules-date-time-handling) at the project root. Use when bootstrapping a project that has no `.agent/rules/` yet, or when the user asks to "scaffold the agent rules" / "drop starter rule templates".
Ships in Agent Continuity. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
.agent/rules/ setInteractive walkthrough. Inspect, propose, confirm, write.
Check for .agent/rules/ at the project root. If it exists, list its contents.
Show the user the four starter files this skill writes:
| File | Purpose |
|---|---|
strict-implementation-lock.md | Plan-then-execute gate. Explicit user approval required before mutating code on substantial work. |
rules-architect-protocol.md | Global posture, conservatism stance, anti-ambiguity defaults. |
rules-git-workflow.md | Conventional commits, atomicity, branching. |
rules-date-time-handling.md | UTC immutability and timezone-anchored bucketing. |
For each file that already exists, ask the user per-file whether to skip or overwrite. Default to skip.
Confirm before writing.
If .agent/rules/ doesn't exist, create it.
.agent/rules/strict-implementation-lock.md# Strict Implementation Lock
**Plan-then-execute gate.** For any non-trivial change, propose a plan and wait for explicit user approval before mutating code.
## What counts as "substantial work"
- Anything spanning more than one file, *unless* it's a single-line typo fix.
- Anything touching production code paths (not just tests or docs).
- Anything that introduces a new dependency, abstraction, or pattern.
- Refactors of any size.
## What does NOT need approval
- Reading, searching, browsing the codebase.
- Running tests, linters, type-checkers, formatters in read-only mode.
- Editing your own scratch notes, session records, or task lists.
## Protocol
1. State your plan: which files, what changes, why.
2. Wait for explicit approval (e.g., "proceed", "go ahead", "do it"). Silence is not approval.
3. After implementation, summarize what changed and what's next.
## Why
Past incidents where speculative edits broke unrelated areas. The cost of a 30-second pause is far lower than the cost of an unwanted change being reverted.
.agent/rules/rules-architect-protocol.md# Architect Protocol
Global posture for agent-driven work in this project.
## Conservatism
- **Edit existing files** over creating new ones. New files require justification.
- **No speculative abstractions.** Two similar lines beats a premature helper.
- **No backwards-compat shims** when you can just change the code.
- **Don't add error handling for scenarios that can't happen.** Trust internal code and framework guarantees. Validate at system boundaries only.
## Anti-ambiguity
- If the user's request is genuinely ambiguous, ask **one specific question** rather than guessing. But spend up to a minute on read-only investigation first — many "ambiguous" requests resolve with a grep.
- Prefer the smallest interpretation that satisfies the request.
## Code quality
- Default to **no comments**. Add one only when the *why* is non-obvious.
- Don't narrate what the code does — well-named identifiers do that.
- Don't reference the current task, fix, or callers in comments. That belongs in the commit message.
## Communication
- Match response length to task complexity. A simple question gets a direct answer, not headers and sections.
- Don't summarize what you just did at the end of every response — the user can read the diff.
.agent/rules/rules-git-workflow.md# Git Workflow
## Commit messages
[Conventional Commits](https://www.conventionalcommits.org/) format:
():
```Types: feat, fix, refactor, perf, test, docs, chore, style, ci, build.
main/master / develop.{type}/{id}-kebab-case-title (e.g. feature/123-login-flow, bugfix/456-fix-crash).--no-verify) or bypass signing unless the user explicitly asks for it. If a hook fails, fix the underlying issue.Always confirm with the user before:
git reset --hard, git push --force / --force-with-lease.git checkout . / git restore . / git clean -f.git branch -D on anything not strictly local-throwaway.
### `.agent/rules/rules-date-time-handling.md`
```markdown
# Date and Time Handling
## Storage
- **Always store timestamps in UTC.** Never store local time.
- Store as ISO-8601 strings (`2026-05-13T11:24:59Z`) or as `Timestamp`/`DateTime` types that preserve the UTC instant.
## Display
- Convert UTC → user's local time at the display layer only. Never re-store the converted value.
- Display layer is always closest to the user (UI, API response serialization).
## Bucketing
- "Day", "week", "month" boundaries are **timezone-anchored**, not UTC-anchored, when the bucket is user-visible.
- Example: "today's attendance" for a user in `America/Sao_Paulo` means `[2026-05-13T00:00:00-03:00, 2026-05-14T00:00:00-03:00)`, not `[2026-05-13T00:00:00Z, 2026-05-14T00:00:00Z)`.
- Always anchor the bucket to a specific IANA timezone (`America/Sao_Paulo`, `Europe/Paris`, etc.). Never use "server time" or "system time".
## Comparisons
- Compare two `Date`/`DateTime` instances directly. Never compare string representations.
- Never compare instances from different timezones without converting to the same zone first.
## What to avoid
- `new Date(string)` parsing without an explicit timezone — the result is implementation-defined for some formats.
- Storing offsets (e.g. `-03:00`) instead of named zones — offsets don't survive DST changes.
- Manipulating dates by adding/subtracting milliseconds for human-meaningful intervals like "one day" or "one month" (DST + variable month lengths break this). Use a dedicated date library.
After writing, tell the user:
/agent-continuity:init-workspace if the project doesn't have a CLAUDE.md tree yet — the root CLAUDE.md should reference .agent/rules/.Knowledge/ folder (use a **Codex Anchors:** header in the rule file pointing to the relevant Knowledge note).Knowledge/.projects/<name>/.agent/rules/, not at the root. This skill only seeds cross-cutting rules.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub monolith-inc/agent-continuity --plugin agent-continuity13 skills in this plugin
/add-refactor-entryGiven a commit hash, derive a before/after entry for Agent Continuity Style Refactor Catalog with the principle applied. Use when the user wants to capture a notable refactor as a teaching example, or asks to "add this commit to the refactor catalog" / "log this refactor"./canvas-mapGenerate an Obsidian Canvas (.canvas) relationship map for a hub note — the note in the center, its outgoing links to one side and its backlinks to the other, wired with edges — saved into the vault's Architecture/ folder. Uses the Obsidian CLI to read the link graph. Use when the user wants a visual map of how a note connects to the rest of the vault, an architecture/dependency diagram, or asks to "make a canvas for X" / "map what links to X"./