| name | init |
| description | Use when setting up field-guide on a project for the first time, or to refresh the scheduled lint job after it expires. Triggers include "init field-guide", "set up field-guide", "refresh field-guide lint schedule", and "bootstrap the wiki". |
Init
Bootstrap the project wiki and register a durable scheduled lint job.
Dependencies
This skill requires CronCreate and CronList to be available in the Claude Code harness. If those tools are not present, the wiki directory and Markdown index will still be created, but the scheduled lint job cannot be registered — inform the user that scheduling is unavailable.
Steps
1. Create the wiki directory.
Check whether .lore/reference/ exists. If not, create it. Then check whether .lore/reference/index.md or .lore/reference/index.html exists.
If neither index exists, write a minimal Markdown file at .lore/reference/index.md:
---
title: Field Guide Index
date: YYYY-MM-DD
status: current
tags: [index, field-guide]
---
# Field Guide Index
Never overwrite an existing index. If index.html already exists and index.md does not, leave it in place; the other field-guide skills can read either format.
2. Check for an existing lint job.
CronCreate jobs auto-delete when they expire, so any job present in CronList is by definition active. The check is simply: is the job ID present in the CronList results?
Proceed as follows:
- Read
.lore/reference/.field-guide.json. If it contains a lint_job_id, call CronList and check whether that ID appears in the results. If it does, skip to the summary step — do not create a second job.