跳到正文
cccskills
免费在 GitHub 公开

workspace-overview

Inspect the local Deliberate Lab workspace environment, Node.js version, bare repository worktrees, remotes, git status, and toolchain readiness.

中文简介正在准备中。当前显示原文说明。

PAIR-code/deliberate-lab星标 97(GitHub 97 + cccskills 0)
集成工具GitHub

实测评分 未实测

查看安装方法

包含的文件(2)

  • SKILL.md3.9 KB
  • scripts/workspace-overview.sh12.4 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Workspace Overview

Ground an AI agent or developer in Deliberate Lab's local development environment. This skill inspects Node.js against .nvmrc, discovers installed runtimes, surveys the bare repository and sibling worktree topology, checks GitHub CLI auth, and verifies monorepo build artifacts.

When to use

Invoke this skill when:

  • Starting a new coding or pairing session.
  • Entering the repository workspace for the first time.
  • Verifying whether Node.js matches the version required by .nvmrc.
  • Getting an overview of existing worktrees, branches, and uncommitted edits.
  • Diagnosing missing build artifacts (utils/dist) or toolchain issues.

Trigger phrases:

  • "Orient to workspace"
  • "Check environment"
  • "Run workspace overview"
  • "Check setup"
  • "Where am I in the repo?"

Procedure

1. Run the Diagnostic Script

From any worktree directory or the parent repository container, execute:

./.agents/skills/workspace-overview/scripts/workspace-overview.sh

The script visibly echoes the underlying diagnostic commands (git, gh, etc.) as it runs, providing complete transparency into command provenance and worktree topology. In repositories with dozens of worktrees or branches, if the diagnostic output exceeds 7 KB, it automatically saves to a temporary file via mktemp and provides the path for lossless inspection via view_file (ADR 0003).

2. Establish Node.js in Persistent Terminal Sessions

Deliberate Lab requires the Node.js major version specified in .nvmrc (v22). Non-interactive agent subshells often lack shell initialization or inherit a mismatched host version.

  • Prefer persistent terminal sessions: Run workspace-overview.sh inside a persistent terminal session when supported by your agent harness.
  • Apply remediation: If the script emits a [FOUND] Compatible binary discovered warning with an export PATH=... command, execute that command once inside your persistent terminal:
export PATH="<path-to-discovered-node-bin>:$PATH"

Once exported in the persistent session, all subsequent commands (npm test, npm run build, npm start) will automatically inherit the correct Node runtime.

3. Act on Diagnostic Warnings

SectionDiagnostic WarningRecommended Action
Node.jsMissing / not found in $PATHApply the emitted export PATH="...:$PATH" from Tier 2 discovery. If uninstalled, run nvm install <version>.
Node.jsMajor version mismatchExport the path to the matching Node binary discovered in NVM or install via NVM.
WorktreeUncommitted file(s)Review git status --short before switching branches or pulling upstream changes.
Toolchaingh not authenticatedRun gh auth login or verify credentials if PR/issue interactions fail.
Toolchaingh auth timed outKeyring locked or waiting for desktop prompt. Unlock desktop session or check for modal, then re-run.
Toolchaingh default repo not setRun gh repo set-default PAIR-code/deliberate-lab to resolve multi-remote ambiguity.
Artifactsnode_modules missingRun npm ci from the worktree root.
Artifactsutils/dist missing or emptyRun npm run build -w utils. utils is the shared dependency for functions and frontend.
Artifactsfunctions/lib missingRun npm run build -w functions if running backend tests or the Firebase emulator.

Safety Rules

  • Read-only by design: workspace-overview.sh does not modify git refs, switch branches, or alter code. It is safe to run unconditionally at any time.
  • Do not invent Node versions: Always trust .nvmrc as the dynamic source of truth for the required Node version.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

eval-pr

免费

Set up a git worktree to run and evaluate an upstream Pull Request locally in a flat worktree bare clone repository layout.

中文简介正在准备中。当前显示原文说明。

PAIR-code/deliberate-lab972026年10月25日 更新

gh

免费

Run GitHub CLI commands and inspect GitHub Issues and Pull Requests cleanly without PTY Glamour terminal truncation or comment-stripping traps.

中文简介正在准备中。当前显示原文说明。

PAIR-code/deliberate-lab972026年10月25日 更新

Evaluate Pull Requests for participant or experimenter UX changes, determine runtime behavioral impact, audit and synthesize Deliberate Lab's 7-part manual experiment test plans, and interactively co-author verification steps.

中文简介正在准备中。当前显示原文说明。

PAIR-code/deliberate-lab972026年10月25日 更新

Reflect on pairing sessions from the AI perspective using the FAR framework (Friction, Ambiguity, Repetition), present observations conversationally, and anchor generalizable improvements as GitHub issues or comments.

中文简介正在准备中。当前显示原文说明。

PAIR-code/deliberate-lab972026年10月25日 更新

Deterministic synchronization of trunk, PR evaluation worktrees, and drift reporting in Deliberate Lab's bare repository workspace.

中文简介正在准备中。当前显示原文说明。

PAIR-code/deliberate-lab972026年10月25日 更新

查看 PAIR-code 的全部技能

报告此技能的问题