Skip to content
Back to skills

Init

ASecurity

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".

  • 6 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 6, 2026
toolspythonexpressgit

Works with

  • claude code

Security analysis

A100/100

Scanned October 7, 2026

npx -y skills add rjroy/vibe-garden --skill init --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Init?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Init
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/rjroy-init-vibe-garden/badge)](https://www.skillsdirectory.com/skills/rjroy-init-vibe-garden)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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, ensure disposable local lore output is ignored when
the lore-development setup helper is available, and register a scheduled lint job.

## Dependencies

CronCreate and CronList are only required for scheduling. Project/wiki setup
does not depend on Cron availability. The local-lore ignore setup is provided
by lore-development's `scripts/ensure_local.py`; when plugins are installed as
siblings, resolve `../../../lore-development/scripts/ensure_local.py` relative
to this skill's installed location, then run it with `python3 <resolved-helper-path>
<explicit-project-root>`.
Do not guess the project root or a global helper path. If lore-development is
installed separately and the sibling helper is unavailable, report that the
optional helper is unavailable; users can run `python3 <path-to-lore-development>/scripts/ensure_local.py <project-root>` directly. This standalone
helper requires Python's standard library only.

If either CronCreate or CronList is unavailable in the Claude Code harness,
skip all scheduling operations. Continue wiki setup and tell the user that
scheduling was unavailable; do not substitute another harness's tools.

## Steps

**1. Create the wiki directory.**

If the lore-development helper is available as described above, run it for the
project before creating any local lore output. This creates `.lore/local/` and
adds the root-anchored `/.lore/local/` rule to `.gitignore` without replacing
existing contents. Do not require the helper or Cron for wiki/index setup.
If the helper is unavailable or exits with an error, say local-lore setup did
not succeed and do not claim `.lore/local/` is ready. Continue the independent
reference wiki/index setup; users can retry the helper directly.

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`:

```markdown
---
title: Field Guide Index
date: YYYY-MM-DD
status: draft
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.

Use the shared lore lifecycle values: new agent-created documents start `draft`; `approved` requires explicit user approval (including editing to approve) or a request for the relevant next process step; arbitrary edits are not approval. `completed` records completed agent work, not user approval. Lifecycle `status` is separate from field-guide `fg-status` freshness. Current direction can revise approved artifacts; do not ask for approval on minor transitions or every document.

**2. Check for an existing lint job.**

If either required Cron tool is unavailable, skip to the summary step after
wiki setup. Otherwise continue below.

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:

1. 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.
2. If `.field-guide.json` is absent, unreadable, or contains no `lint_job_id`, call CronList and scan for any job whose prompt is `/field-guide:lint`. If one is found, write its ID to `.field-guide.json` (preserving any existing `schedule` value, or omitting it if unknown), then skip to the summary step.
3. Only proceed to CronCreate if no matching job was found by either path.

**3. Translate the schedule value.**

Before calling CronCreate, convert the user's requested schedule to a 5-field cron expression:

- `daily` → `"3 8 * * *"` (08:03 every day)
- `weekly` → `"3 8 * * 1"` (08:03 every Monday)
- A raw 5-field cron expression → pass through unchanged
- No schedule provided → default to `"3 8 * * *"`

**4. Register the lint job.**

If no active job was found, call CronCreate using only arguments supported by the tool's exposed schema:

- `prompt`: `/field-guide:lint`
- `cron`: the translated cron expression from step 3
- `durable`: optionally set to `true` only if the exposed schema supports this argument

Store the returned job ID and the requested cron expression in `.lore/reference/.field-guide.json`:

```json
{ "lint_job_id": "<id>", "schedule": "<schedule>" }
```

**5. Tell the user what happened.**

Confirm whether the directory and index were created or already existed. If an existing HTML index was found, mention that it was preserved for compatibility. Confirm whether a new lint job was registered or an existing one was found. Report the job ID, cron expression, and whether the CronCreate response confirms durable persistence. Do not claim persistence when the response does not confirm it.

Report persistence and expiration separately: durable persistence means the job survives restarts, but recurring CronCreate jobs still expire after 7 days. Always tell the user about the 7-day expiration and recommend rerunning `/field-guide:init` before then, regardless of the persistence result.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in tools →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.