一键导入
tecton
Run Tecton plan and tests via Pants in the data-science repo. Handles long-running commands with proper output capture to avoid truncation.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Run Tecton plan and tests via Pants in the data-science repo. Handles long-running commands with proper output capture to avoid truncation.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Load this skill when performing git operations that modify repository state: add, commit, amend, rebase, merge, stash, worktree, reset, checkout, switch, branch create/delete.
Use tuicr's review CLI to read and add comments in active TUI review sessions, and launch tuicr in the host neovim (or a tmux pane) when a user needs an interactive review pane.
Read or control a neovim instance this opencode process is running under (embedded terminal, floaterm, or similar) via nvim's native --server/--remote* flags -- cursor position, visual selection, open a file at a line, list buffers, load a quickfix list, or run/send anything else. Use when editor context matters (the user says "the cursor", "my selection", "what I'm looking at") or a task should open a location or populate the quickfix list in their running neovim. Do nothing if $NVIM is unset -- there is no attached neovim to talk to.
Load before ANY taskagent operation, or when you read a file referencing taskagent (org/projects, plan files, docs). taskagent is the human-facing backlog and durable cross-session memory — not in-session working memory. For steps you'll finish this session, use TodoWrite + the plan file.
MUST load before ANY git or yadm operation — reading, writing, branching, committing, diffing, logging, rebasing, or anything else git-related. No exceptions.
| name | tecton |
| description | Run Tecton plan and tests via Pants in the data-science repo. Handles long-running commands with proper output capture to avoid truncation. |
Tecton commands (especially tecton-plan) produce very long output that gets
truncated. Capture to a literal file under /tmp/opencode/ and inspect it with
the Read tool / rg:
PANTS_CONCURRENT=True pants tecton-plan --workspace=<workspace> --skip-tests 2>&1 | tee /tmp/opencode/tecton-plan.txt; echo "EXIT_CODE: ${PIPESTATUS[0]}"
Then inspect /tmp/opencode/tecton-plan.txt:
rg "error|Error|ERROR" /tmp/opencode/tecton-plan.txt to find failures.Key points:
/tmp/opencode/... path. tee to a
$(mktemp) variable is blocked by bash-guard (unresolved-variable write target).echo "EXIT_CODE: ${PIPESTATUS[0]}" — $? would
report tee's exit code, not pants'.rg; no manual cleanup needed (/tmp/opencode is
ephemeral, and rm would trigger a permission prompt).PANTS_CONCURRENT=True so multiple
plan/test runs can proceed in parallel. The PANTS_CONCURRENT=True pants tecton-plan *
and PANTS_CONCURRENT=True pants test * forms are allow-listed in opencode.jsonc,
so they run without a permission prompt.checkoutandsale-v1-staging: Staging workspace - check against this firstbence-dev: Personal dev workspace for clarifying issues if staging fails with confusing errorsIf staging passes, no need to check against bence-dev. Use bence-dev only when staging errors are unclear.
Runs tecton plan against a workspace. Use --skip-tests to speed up iteration.
# Plan against staging (check this first)
PANTS_CONCURRENT=True pants tecton-plan --workspace=checkoutandsale-v1-staging --skip-tests 2>&1 | tee /tmp/opencode/tecton-plan-staging.txt; echo "EXIT_CODE: ${PIPESTATUS[0]}"
# Plan against dev workspace (only if staging errors are unclear)
PANTS_CONCURRENT=True pants tecton-plan --workspace=bence-dev --skip-tests 2>&1 | tee /tmp/opencode/tecton-plan-dev.txt; echo "EXIT_CODE: ${PIPESTATUS[0]}"
Inspect the capture files with the Read tool or rg.
Run Tecton tests using the pants test goal with --tecton-test-run flag.
# Run all tecton tests in a directory
PANTS_CONCURRENT=True pants test --tecton-test-run projects/features/repos/sig_tecton/tests/sig_tecton/datasources/orders/::
# Run a specific test file
PANTS_CONCURRENT=True pants test --tecton-test-run projects/features/repos/sig_tecton/tests/sig_tecton/datasources/orders/test_orders_datasources.py
# Run a specific test function
PANTS_CONCURRENT=True pants test --tecton-test-run projects/features/repos/sig_tecton/tests/path/to/test_file.py -- -k test_function_name
For long test runs, capture and inspect:
PANTS_CONCURRENT=True pants test --tecton-test-run projects/features/repos/sig_tecton/tests/:: 2>&1 | tee /tmp/opencode/tecton-test.txt; echo "EXIT_CODE: ${PIPESTATUS[0]}"