Skip to content
Agentmart
Submit a tool

Dayarc Setup

Initialize Dayarc data directories, user config, and optional scheduler on first run or reconfiguration.

Skill by YuiZhou

IndexedMIT★ 2
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/yuizhou-dayarc-setup

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Initialize Dayarc data directories, user config, and optional scheduler on first run or reconfiguration.

Use cases: data

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/dayarc-setup

What's inside

Skill name
Dayarc Setup
Description
Initialize Dayarc data directories, user config, and optional scheduler on first run or reconfiguration.
License
MIT
Instructions
148 lines in SKILL.md · view on GitHub

Agent Skills spec issues

  • name: only lowercase letters, digits and single hyphens allowed
  • name: "Dayarc Setup" does not match folder "dayarc-setup"

Files (1)

  • SKILL.md

SKILL.md (first lines)

## When to Use

- Automatically triggered when `~/Documents/dayarc/config.json` does not exist (first run after install).
- Explicitly triggered when the user asks to "set up", "reconfigure", "reset config", or "reinitialize" Dayarc.

## Preflight Checks

Before starting setup, verify prerequisites:

### 1. GitHub CLI

```powershell
gh auth status
```

- **If not authenticated:** Stop and tell the user:
  > I need GitHub authentication to access your data. Please run `gh auth login` first, then come back.

### 2. Outlook (soft check)

```powershell
Get-Process OUTLOOK -ErrorAction SilentlyContinue
```

- **If not running:** Warn but continue:
  > ⚠️ Outlook isn't running. You'll need it later for email briefs, but we can finish setup without it.

## Setup Steps

### Step 1: Create Data Directories

```powershell
$docsDir = [Environment]::GetFolderPath("MyDocuments")
$dataDir = Join-Path $docsDir "dayarc"
```

**OneDrive detection:** Check if `$docsDir` differs from `$HOME\Documents`. If so, OneDrive is redirecting the Documents folder. Ask the user:

> Your Documents folder is managed by OneDrive (`{docsDir}`). Is this the first machine you're setting up Dayarc on?

- **First machine → create directories:**
  ```powershell
  New-Item -ItemType Directory -Path (Join-Path $dataDir "memory\daily") -Force
  New-Item -ItemType Directory -Path (Join-Path $dataDir "memory\runs") -Force
  New-Item -ItemType Directory -Path (Join-Path $dataDir "memory\weekly-archive") -Force
  ```

- **Not first machine →** Tell the user to wait for OneDrive sync, then re-launch.

If no OneDrive detected, create directories immediately.

### Step 2: Collect Identity

Ask the user for four pieces of information, one at a time:

1. **Full name** — "What's your full name as it appears in @mentions? (e.g., Yu Zhou — not a nickname)"
2. **Work email** — "What's your work email address?"
3. **GitHub username(s)** — "What are your GitHub usernames? (comma-separated if you have multiple, e.g., personal + enterprise/EMU account)"
4. **Preferred language** — Infer the user's preferred language from the conversation so far (e.g., if the user has been writing in Chinese, suggest `zh`; if in English, suggest `en`). Ask:
   > "What language would you like your briefs in? I'll use a BCP 47 locale code — for example `en` for English, `zh` for Simplified Chinese, `ja` for Japanese, `fr` for French. Based on our conversation I'd suggest `{inferred_locale}`. Press Enter to accept or type a different code."
   Accept any valid BCP 47 locale code. Default to `en` if the user skips the question.

### Step 3: Write config.json

Write to `~/Documents/dayarc/config.json`:

```json
{
  "user": {
    "display_name": "<name from Step 2>",
    "email": "<email from Step 2>",
    "github_usernames": ["<handle1>", "<handle2>"]
  },
  "locale": "<locale from Step 2, default 'en'>",
  "preferences": {
    "brief_max_items": 15,
    "priority_max_items": 5,
    "unfinished_max_items": 5,
    "signal_max_items": 10,
    "plan_max_items": 8,
    "learning_items": 5,
    "drift_max_items": 3
  },
  "scheduler": []
}
```

Confirm to the user: "✅ Config saved to `~/Documents/dayarc/config.json`"

### Step 4: Offer Scheduler Registration

Ask: "Would you like to register daily briefs with Task Scheduler? (AM at 8:00 + PM at 20:00, weekdays only)"

If yes:

1. **Find the scheduler script.** Search for `scheduler.ps1` in these locations, in order:
   ```powershell
   # Plugin install location
   $pluginHits = Get-ChildItem -Path (Join-Path $HOME ".copilot\installed-plugins") -Filter "scheduler.ps1" -Recurse -ErrorAction SilentlyContinue
   # Git clone location
   $cloneHit = Join-Path $HOME ".dayarc-agent\scheduler.ps1"
   ```
   Use the first hit that exists. If none found, tell the user and skip.

   **Agent name:** The scheduler script auto-detects the correct agent name at runtime (`dayarc:dayarc` for plugin installs, `dayarc` for user-level). No manual configuration needed.

2. **Register scheduled tasks:**
   ```powershell
   $settings = New-ScheduledTaskSettingsSet -AllowStartIfOnBatteries -DontStopIfGoingOnBatteries -StartWhenAvailable
   Register-ScheduledTask -TaskName "Dayarc-AM" -Action (New-ScheduledTaskAction -Execute "powershell.exe" -Argument "-NoProfile -File `"$schedulerScript`" -trigger am") -Trigger (New-ScheduledTaskTrigger -Weekly -DaysOfWeek Monday,Tuesday,Wednesday,Thursday,Friday -At 8:00AM) -Settings $settings -Description "Dayarc morning brief"
   Register-ScheduledTask -TaskName "Dayarc-PM" -Action (New-ScheduledTaskAction -Execute "powershell.exe" -Argument "-NoProfile -File `"$schedulerScript`" -trigger pm") -Trigger (New-ScheduledTaskTrigger -Weekly -DaysOfWeek Monday,Tuesday,Wednesday,Thursday,Friday -At 8:00PM) -Settings $settings -Description "Dayarc evening brief"
   ```

3. **Update config.json** — add this machine to the scheduler array:
   ```json
   { "machine": "<COMPUTERNAME>", "am_time": "08:00", "pm_time": "20:00" }
   ```

If no: skip and tell the user they can add it later by saying "set up scheduler".

From YuiZhou/dayarc-agent, MIT.

More from YuiZhou/dayarc-agent

Signals

Stars
2
Forks
2
Open issues
7
Last commit (this folder)
Apr 5, 2026 (6 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from YuiZhou

Cite this page

Dayarc Setup skill. Agent Mart. https://agentmart.dev/skills/yuizhou-dayarc-setup (last updated 2026-10-24)