Agent Skills › Drakkar-Software/OctoBot › octobot-cloud

octobot-cloud

GitHub

指导在 Cursor Cloud Agent 中执行 OctoBot 项目的开发工作流,涵盖环境配置、分支管理、tentacles 重装及代码规范。

.cursor/skills/octobot-cloud/SKILL.md Drakkar-Software/OctoBot

Trigger Scenarios

需要安装或验证 OctoBot Cloud 环境 修改 tentacles 包后需重新安装 执行 pytest 测试并调试失败用例 使用 extended_linter 检查代码规范

Install

npx skills add Drakkar-Software/OctoBot --skill octobot-cloud -g -y
More Options

Use without installing

npx skills use Drakkar-Software/OctoBot@octobot-cloud

指定 Agent (Claude Code)

npx skills add Drakkar-Software/OctoBot --skill octobot-cloud -a claude-code -g -y

安装 repo 全部 skill

npx skills add Drakkar-Software/OctoBot --all -g -y

预览 repo 内 skill

npx skills add Drakkar-Software/OctoBot --list

SKILL.md

Frontmatter
{
    "name": "octobot-cloud",
    "description": "OctoBot git repo on Cursor Cloud Agent: bash, cloud-install, tentacles reinstall, pytest\/pylint, debugging failing pytest (integration\/functional, cross-package), extended_linter, changes under octobot\/, packages\/, packages\/tentacles\/."
}

OctoBot Cloud Agent

Multi-step roadmap plans (title or description contains roadmap): author with skill cloud-roadmap (.cursor/skills/cloud-roadmap/SKILL.md); execute with this skill.

Workflow

  1. source .cursor/env.sh before Python tooling.
  2. Checkout dev (or user base) → create feature branch → implement → commit → PR to dev (match --base on extended_linter to PR target).
  3. After packages/tentacles/ edits: bash .cursor/reinstall-tentacles.sh.
  4. Before commit: remove any scratch plan files (PLAN-*.md, *.plan.md, .cursor/plans/) from the tree; do not stage them (path.deny_agent_plans). Do not change agent docs (see octobot-cloud.mdc path list) unless the task owns them — otherwise restore from origin/<base> (agent_docs.no_regression_vs_merge_base).
  5. After git rebase or fast-forward onto origin/dev, re-checkout unrelated agent-doc paths from origin/dev if the working tree still has stale copies. Squash commits must reflect the current branch tip, not an old cloud workspace snapshot.
  6. Before handoff: python -m tools.extended_linter --base origin/dev (or origin/<base_ref>).
  7. Run targeted pytest per reference-pytest.md (CI matrix). If any test fails, start with step 1 — visible logs, then follow When tests fail before changing production code or the harness.

Install and env

  • Profile default: ui-node-web (environment.json → PANTS_PANTSD=false OCTOBOT_CLOUD_PROFILE=ui-node-web bash .cursor/cloud-install.sh). GitHub cloud-env-validate still uses ci-tentacles.
  • Success: Build log contains OCTOBOT_CLOUD_INSTALL_OK. Do not guess from UI alone.
  • Validate: bash .cursor/cloud-validate.sh --profile ci-tentacles --json
  • Profiles: package-only (no tentacles), ci-tentacles (CI parity), ui-node-web (+ web UI build).

Layout

  • Repo root: OctoBot application, packages/*, tools/, root AGENTS.md (package boundaries colocated as AGENTS.md).
  • Installed tentacles output: repo-root tentacles/ (generated — never edit).
  • Tentacles sources: packages/tentacles/.

Coding conventions

Policy and verify

  • Machine rules: tools/extended_linter/config/policy.yaml (extend via tools/extended_linter/ARCHITECTURE.md)
  • CLI: python -m tools.extended_linter --base origin/dev --continue --report json
  • Read reports: rule_id, file, line, hint blocks.

Architecture docs

  • Index: root AGENTS.md (when to read, CI matrix table)
  • Per-package: octobot/AGENTS.md, packages/tentacles/AGENTS.md, packages/<name>/AGENTS.md
  • Read colocated AGENTS.md before cross-package or tentacles changes.

Formatting (touched paths only in 1b)

  • Python: ruff format / ruff check when configured (CI enforce later).
  • node_web_interface: Biome in packages/tentacles/Services/Interfaces/node_web_interface/.

Pytest

See reference-pytest.md for cwd and PYTHONPATH per CI matrix package.

When a test fails

  1. Re-run the failing node with log-cli per step 1 (single process; omit -n auto).
  2. State the invariant (one sentence: what must be true when the test passes).
  3. Find the failure boundary (last good layer vs first bad layer); do not widen mocks, seeds, or timeouts until that boundary is clear.
  4. Apply the full protocol in When tests fail before editing production code or the harness.

Node UI tests (agents)

  • User-visible UI: For copy, layout, errors, or help in node_web_interface or classic web_interface, read skill end-user-ui (.cursor/skills/end-user-ui/SKILL.md) and colocated AGENTS.md under those tentacle paths.
  • In PRs: Vitest in packages/tentacles/Services/Interfaces/node_web_interface/ (npm test) plus Python/API tests (node_api_interface, packages/node, tentacles pytest as needed). Do not add Playwright e2e under e2e/ or test:e2e scripts (path.deny_node_web_playwright_e2e).
  • CI runs Vitest for tentacles package.json projects; e2e is not in the matrix.

Node UI manual QA (agent seed)

Not required for normal pytest / ci-tentacles package work — only when the task uses the live Node web UI.

For ui-node-web: follow skill agent-seed (.cursor/skills/agent-seed/SKILL.md). Typical one-shot: source .cursor/env.sh, source .cursor/agent-seed.env, stop any running node, then bash .cursor/seed-agent.sh --full. After startup, log in with passphrase demodemo; use the full /app UI as needed, and /app/debug to send user actions.

Out of scope unless asked

  • Live bot ports, docker image publish, signed tentacles release pipeline.
  • pip install / npm install to fix imports.

Version History

  • 3.0.0-beta3 Current 2026-10-19 02:08

Same Skill Collection

.cursor/skills/agent-seed/SKILL.md
.cursor/skills/end-user-ui/SKILL.md
.cursor/skills/node-journal/SKILL.md
.cursor/skills/cloud-roadmap/SKILL.md

Metadata

Files
0
Version
3.0.0-beta3
Hash
3022c4d8
Indexed
2026-10-19 02:08

홈 - 위키
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-10-31 21:38
浙ICP备14020137号-1