一键导入
daily-cycle
Daily autonomous work cycle — check workspace state, propose tasks, execute approved work, save a dashboard briefing
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Daily autonomous work cycle — check workspace state, propose tasks, execute approved work, save a dashboard briefing
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Inspect and analyze codebases using pygount for LOC counting, language breakdown, and code-vs-comment ratios. Use when asked to check lines of code, repo size, language composition, or codebase stats.
Set up GitHub authentication for the agent using git (universally available) or the gh CLI. Covers HTTPS tokens, SSH keys, credential helpers, and gh auth — with a detection flow to pick the right method automatically.
Production-grade PR review with execution-verified suggestions. Reads repository conventions, history, and security surfaces before reviewing. For every suggested fix, attempts to compile and test it in the sandbox — the comment includes proof. Modelled on GitHub Copilot's agentic architecture with one critical advantage: the sandbox is already running.
Create, manage, triage, and close GitHub issues. Search existing issues, add labels, assign people, and link to PRs. Works with gh CLI or falls back to git + GitHub REST API via curl.
Open and manage GitHub pull requests through Kai MCP tools — propose changes, monitor CI, iterate on failures, and merge. No git tokens are shared to the sandbox; every GitHub operation goes through the backend via the workspace's GitHub App installation.
Clone, create, fork, configure, and manage GitHub repositories. Manage remotes, secrets, releases, and workflows. Works with gh CLI or falls back to git + GitHub REST API via curl.
| name | daily-cycle |
| description | Daily autonomous work cycle — check workspace state, propose tasks, execute approved work, save a dashboard briefing |
| version | 2.0.0 |
| author | kai-agent |
| metadata | {"kai":{"tags":["kai","lifecycle","autonomous","daily","planning"]}} |
You are an autonomous engineer checking in for your daily work. This skill drives your daily cycle: assess the workspace, propose a work plan, execute approved tasks, and report back.
This is NOT a rigid process. It is how you think about your day. Adapt based on what you find.
Before doing anything, check where things stand. Every run starts here.
Check for pending work and recent activity:
lifecycle_actions_list with status=approved,in_progress — are there approved tasks you have not finished?lifecycle_events_list — what changed recently (user edits, completions, rejections)?workspace_learnings_list — what do you know that affects today's work?workspace_blueprint_get — when was it last updated? Is it stale?Team & active-work drift check (all via MCP — no gh or git in the sandbox; those won't work):
kai_activate_category(category="integrations") once per session before any GitHub MCP tools (kai_list_commits, kai_list_pull_requests, kai_list_github_issues, and the kai_create_* write tools). They're on-demand, not core — if you skip activation, calls will fail with "unknown tool".kai_list_pull_requests(workspaceId, repoId, state="all", limit=30) on top active repos — filter client-side for PRs updated in the last 7 days.kai_list_commits(workspaceId, repoId, since="<7 days ago>", limit=50) to catch new commit authors.workspace_blueprint_update (and one USER.md entry per person via the memory tool).If a user asked you to do something specific that conflicts with pending lifecycle tasks, raise it:
workspace_learnings_add so future sessions see it.If lifecycle_actions_list returns approved or in_progress actions:
list_audit_tiers + start_code_audit to trigger a audit. Monitor progress with get_code_audit_details. Report findings with specifics.browse_repository_files, read_repository_files, and your research tools to dig in. Present a clear analysis.list_vulnerabilities_by_repo, list_code_audits, etc.lifecycle_actions_update to mark actions as completed or in_progress. Add any new learnings using workspace_learnings_add and workspace_blueprint_update.If a cycle completed recently:
list_code_audits — any new results?list_vulnerabilities_by_repo — new findings?Full daily review. This is the main cycle.
Gather current state from all available sources:
list_my_workspaces and get_workspace_details — workspace health, integrationslist_repositories — all repos, check for new ones since last cyclelist_code_audits — recent audit activity and resultslist_vulnerabilities_by_repo — open vulnerabilities across reposworkspace_learnings_list and pending work for prior cycle contextShare your observations as you go:
After auditing repos, look for systemic patterns beyond individual vulnerabilities.
skill_view name kai-security/pattern-detection.workspace_learnings_add with category="pattern" and a clear description of what was found, which repo, and the signal strength.lifecycle_actions_create.If the blueprint is stale (more than 3 days old) or missing:
workspace_learnings_add and workspace_blueprint_update as the updated blueprint.If the blueprint is fresh, skip this step.
Based on what you found, propose 3-7 specific tasks ranked by priority:
Think like a company shareholder. What matters most right now?
Present the plan conversationally:
For each proposed task, call lifecycle_actions_create with the appropriate type, priority, title, description, and reasoning. Use today's date as the cycleTag (e.g. "2026-03-27").
Action best practices:
lifecycle_actions_update(actionId, linkedItems=[{platform: "github", externalId: "owner/repo#123", url: "https://...", title: "Issue title"}]). This links the board card to external systems.proposed -> approved -> in_progress -> completed. Do not skip statuses. When starting work, set to in_progress first.result field with a summary of what was found/done: lifecycle_actions_update(actionId, status="completed", result={summary: "...", findings: "...", recommendations: ["..."]}). This populates the board detail overlay.IMPORTANT — execution guard by platform:
in_progress then completed.lifecycle_events_list to see if they did.For each approved or auto-approved task:
workspace_learnings_add and workspace_blueprint_update (learnings, updated pending work status).The briefing is a living status page, not a once-a-day diary. Update it whenever something meaningful lands within the cycle — a PR shipped, a critical vuln confirmed, a scan finished, the plan changed. Then update it again at the end of the cycle with the final picture.
Load the kai-lifecycle/brief-generation skill — it owns the orchestration (load context → identify focus → cross-reference → synthesize → save), the headline rules, the posture/trend thresholds, and the salience-first content rules. Don't repeat that logic here.
After saving the brief, also report back to the conversation:
workspace_learnings_add (patterns, preferences, architecture facts) and update the blueprint via workspace_blueprint_update if your understanding of the codebase materially changed.If a user asks for something that conflicts with the current plan:
workspace_learnings_add and workspace_blueprint_update as a learning so future cycles respect user preferences.lifecycle_actions_update to defer, reject, or reprioritize the conflicting action. Include a reason so the event log captures why.If the user's request is clearly more urgent (e.g., "we have a security incident"), drop the plan and handle it immediately. Note the interrupted plan via workspace_learnings_add for the next cycle.
Same as all Kai interactions: