From a7ab7e1ed7094386fa034edf626949046d54fdf0 Mon Sep 17 00:00:00 2001 From: Duyet Le Date: Sat, 13 Jun 2026 23:37:18 +0700 Subject: [PATCH] style(agent-loop): satisfy super-linter markdown + json checks Co-Authored-By: duyetbot --- agent-loop/.claude-plugin/plugin.json | 2 +- agent-loop/.codex-plugin/plugin.json | 17 ++++++-- agent-loop/CLAUDE.md | 38 +++++++++--------- agent-loop/README.md | 58 +++++++++++++-------------- agent-loop/commands/status.md | 2 +- agent-loop/commands/stop.md | 3 +- 6 files changed, 66 insertions(+), 54 deletions(-) diff --git a/agent-loop/.claude-plugin/plugin.json b/agent-loop/.claude-plugin/plugin.json index 837458e..d3c4627 100644 --- a/agent-loop/.claude-plugin/plugin.json +++ b/agent-loop/.claude-plugin/plugin.json @@ -4,4 +4,4 @@ "description": "Continuous agent loop for overnight/day repository maintenance. Orchestrates triage, autoreview, browser automation, and parallel agent work across threads. Wake every 5 min, direct work to threads, land autonomously.", "author": { "name": "duyetbot" }, "license": "MIT" -} \ No newline at end of file +} diff --git a/agent-loop/.codex-plugin/plugin.json b/agent-loop/.codex-plugin/plugin.json index a74740b..1b49f5e 100644 --- a/agent-loop/.codex-plugin/plugin.json +++ b/agent-loop/.codex-plugin/plugin.json @@ -6,8 +6,19 @@ "license": "MIT", "skills": "./skills/", "codex": { - "skills": ["agent-loop-orchestrator", "agent-loop-triage", "agent-loop-autoreview", "agent-loop-browser"], - "commands": ["agent-loop:start", "agent-loop:stop", "agent-loop:status", "agent-loop:triage", "agent-loop:autoreview"] + "skills": [ + "agent-loop-orchestrator", + "agent-loop-triage", + "agent-loop-autoreview", + "agent-loop-browser" + ], + "commands": [ + "agent-loop:start", + "agent-loop:stop", + "agent-loop:status", + "agent-loop:triage", + "agent-loop:autoreview" + ] }, "interface": { "displayName": "Agent Loop", @@ -16,4 +27,4 @@ "category": "Automation", "capabilities": ["Skill", "Command"] } -} \ No newline at end of file +} diff --git a/agent-loop/CLAUDE.md b/agent-loop/CLAUDE.md index bceb6cd..16690d4 100644 --- a/agent-loop/CLAUDE.md +++ b/agent-loop/CLAUDE.md @@ -8,7 +8,7 @@ Continuous overnight/day repository maintenance with autonomous agent loops. ## Plugin Structure -``` +```text agent-loop/ ├── .claude-plugin/ │ └── plugin.json # Manifest (version 0.2.0) @@ -25,32 +25,32 @@ agent-loop/ ### Commands -| Command | Description | -|---------|-------------| -| `/agent-loop:start` | Start the continuous maintenance loop | -| `/agent-loop:stop` | Gracefully stop the loop | -| `/agent-loop:status` | Check loop status and history | -| `/agent-loop:triage` | One-shot repo queue triage | -| `/agent-loop:autoreview` | One-shot PR review and fix | +| Command | Description | +| ------------------------ | ------------------------------------- | +| `/agent-loop:start` | Start the continuous maintenance loop | +| `/agent-loop:stop` | Gracefully stop the loop | +| `/agent-loop:status` | Check loop status and history | +| `/agent-loop:triage` | One-shot repo queue triage | +| `/agent-loop:autoreview` | One-shot PR review and fix | ### Skills -| Skill | Purpose | -|-------|---------| +| Skill | Purpose | +| --------------------------- | ------------------------------------------------------ | | **agent-loop-orchestrator** | Core loop: wait → triage → dispatch → monitor → report | -| **agent-loop-triage** | GitHub issue/PR queue scanning and classification | -| **agent-loop-autoreview** | Autonomous PR review, fix application, and merging | -| **agent-loop-browser** | Browser automation for live UI proof and verification | +| **agent-loop-triage** | GitHub issue/PR queue scanning and classification | +| **agent-loop-autoreview** | Autonomous PR review, fix application, and merging | +| **agent-loop-browser** | Browser automation for live UI proof and verification | ## Versioning Follow semantic versioning (semver): -| Change Type | Version Bump | Example | -|-------------|--------------|---------| -| Bug fix, docs | Patch | 0.2.0 → 0.2.1 | -| New feature, minor change | Minor | 0.2.0 → 0.3.0 | -| Breaking change | Major | 0.2.0 → 1.0.0 | +| Change Type | Version Bump | Example | +| ------------------------- | ------------ | ------------- | +| Bug fix, docs | Patch | 0.2.0 → 0.2.1 | +| New feature, minor change | Minor | 0.2.0 → 0.3.0 | +| Breaking change | Major | 0.2.0 → 1.0.0 | Always update `plugin.json` version when making changes. @@ -58,7 +58,7 @@ Always update `plugin.json` version when making changes. Use semantic commits with plugin scope: -``` +```text feat(agent-loop): add new feature fix(agent-loop): fix bug docs(agent-loop): update documentation diff --git a/agent-loop/README.md b/agent-loop/README.md index 1d3f96a..daf7b6e 100644 --- a/agent-loop/README.md +++ b/agent-loop/README.md @@ -2,7 +2,7 @@ Continuous overnight/day repository maintenance with autonomous agent loops. -``` +```text Wake every 5m ──► Triage repos ──► Dispatch threads ──► Track & land ``` @@ -25,24 +25,24 @@ That makes it easy to parallelize + steer work as needed. ### Skills -| Skill | Purpose | -|-------|---------| +| Skill | Purpose | +| --------------------------- | ------------------------------------------------------ | | **agent-loop-orchestrator** | Core loop: wait → triage → dispatch → monitor → report | -| **agent-loop-triage** | GitHub issue/PR queue scanning and classification | -| **agent-loop-autoreview** | Autonomous PR review, fix application, and merging | -| **agent-loop-browser** | Browser automation for live UI proof and verification | +| **agent-loop-triage** | GitHub issue/PR queue scanning and classification | +| **agent-loop-autoreview** | Autonomous PR review, fix application, and merging | +| **agent-loop-browser** | Browser automation for live UI proof and verification | ### Commands -| Command | Description | -|---------|-------------| -| `/agent-loop:start` | Start the continuous maintenance loop | -| `/agent-loop:stop` | Gracefully stop the loop | -| `/agent-loop:status` | Check loop status and history | -| `/agent-loop:triage` | One-shot repo queue triage | -| `/agent-loop:autoreview` | One-shot PR review and fix | +| Command | Description | +| ------------------------ | ------------------------------------- | +| `/agent-loop:start` | Start the continuous maintenance loop | +| `/agent-loop:stop` | Gracefully stop the loop | +| `/agent-loop:status` | Check loop status and history | +| `/agent-loop:triage` | One-shot repo queue triage | +| `/agent-loop:autoreview` | One-shot PR review and fix | -## Skills +## Skill Sources Sources adapted for the agent-loop plugin: @@ -72,18 +72,18 @@ Sources adapted for the agent-loop plugin: ## Configuration -| Env Variable | Default | Description | -|-------------|---------|-------------| -| `AGENT_LOOP_INTERVAL` | 300 | Sleep between cycles (seconds) | -| `AGENT_LOOP_MAX_CONCURRENCY` | 3 | Max parallel worker threads | -| `AGENT_LOOP_SCOPE` | current | Default triage scope | -| `AGENT_LOOP_LOG_DIR` | .agent-loop/logs | Log output directory | -| `AGENT_LOOP_STATE_FILE` | .agent-loop/state.json | Persisted loop state | -| `AGENT_LOOP_REPOS` | (from git remote) | Comma-separated repo list | +| Env Variable | Default | Description | +| ---------------------------- | ---------------------- | ------------------------------ | +| `AGENT_LOOP_INTERVAL` | 300 | Sleep between cycles (seconds) | +| `AGENT_LOOP_MAX_CONCURRENCY` | 3 | Max parallel worker threads | +| `AGENT_LOOP_SCOPE` | current | Default triage scope | +| `AGENT_LOOP_LOG_DIR` | .agent-loop/logs | Log output directory | +| `AGENT_LOOP_STATE_FILE` | .agent-loop/state.json | Persisted loop state | +| `AGENT_LOOP_REPOS` | (from git remote) | Comma-separated repo list | ## Plugin Structure -``` +```text agent-loop/ ├── .claude-plugin/ │ └── plugin.json # Manifest (version 0.2.0) @@ -111,17 +111,17 @@ agent-loop/ Follow semantic versioning (semver): -| Change Type | Version Bump | Example | -|-------------|--------------|---------| -| Bug fix, docs | Patch | 0.2.0 → 0.2.1 | -| New feature, minor change | Minor | 0.2.0 → 0.3.0 | -| Breaking change | Major | 0.2.0 → 1.0.0 | +| Change Type | Version Bump | Example | +| ------------------------- | ------------ | ------------- | +| Bug fix, docs | Patch | 0.2.0 → 0.2.1 | +| New feature, minor change | Minor | 0.2.0 → 0.3.0 | +| Breaking change | Major | 0.2.0 → 1.0.0 | ## Commit Convention Use semantic commits with plugin scope: -``` +```text feat(agent-loop): add new feature fix(agent-loop): fix bug docs(agent-loop): update documentation diff --git a/agent-loop/commands/status.md b/agent-loop/commands/status.md index c9373d2..122e73a 100644 --- a/agent-loop/commands/status.md +++ b/agent-loop/commands/status.md @@ -22,7 +22,7 @@ Check the current state of the agent-loop. ## Output -``` +```text Agent Loop: RUNNING (PID: 42391) Started: 2026-06-11 00:00:00 UTC Uptime: 2h 14m 32s diff --git a/agent-loop/commands/stop.md b/agent-loop/commands/stop.md index 9af8720..62db61b 100644 --- a/agent-loop/commands/stop.md +++ b/agent-loop/commands/stop.md @@ -24,7 +24,8 @@ Gracefully shut down the running agent-loop. 2. Active threads get up to 120s to finish (or 0 with `--force`) 3. Final state is persisted to `.agent-loop/state.json` 4. Prints cycle summary: -``` + +```text Agent Loop Stopped Cycles completed: 24 Items processed: 87