跳到正文
cccskills
免费在 GitHub 公开

sandbox-feedback-loop

Build a runnable reproduce→fix→verify loop for a bug or feature in a fresh sandbox, and record it as a feedback-loop doc. Use when investigating a reported bug, validating a root cause, or proving a fix works — before and after the change.

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

bagofwords1/bagofwords星标 463(GitHub 463 + cccskills 0)
集成工具Playwright

实测评分 未实测

查看安装方法

包含的文件(1)

  • SKILL.md3.4 KB

SKILL.md(原文)

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

Sandbox Feedback Loop

A feedback loop is a runnable document: anyone (human or agent) can re-execute it in a fresh sandbox and observe the same failure, then the same pass after the fix. Examples of the format live in docs/feedback-loops/ (e.g. save-button.md, fabric-obo-second-admin-tables.md).

Process

  1. Reproduce first. Never fix a bug you haven't watched fail. Write the smallest deterministic reproduction — a pytest test, a Playwright spec, or a static harness — that fails on current code for the reported reason.
  2. Isolate the root cause and cite it as file.py:line references.
  3. Fix, re-run the same loop, and show the observed output flipping.
  4. Write the doc to docs/feedback-loops/<topic>.md (do NOT add new sandbox-feedback-loop-*.md files at the repo root).

Environment setup (fresh sandbox)

The app targets Python 3.13 (3.12+ works; needs 3.12 f-string syntax; the sandbox default python may be 3.11).

cd backend
pip install uv
uv sync --frozen --extra dev
export BOW_DATABASE_URL="sqlite:///db/app.db"   # required by bow-config.dev.yaml
mkdir -p db
  • Tests run on SQLite by default; the autouse run_migrations fixture builds the schema per test (tests/conftest.py). Use --db=postgres for the testcontainers leg, --db=external when Docker is unavailable.
  • Playwright browsers are pre-provisioned at /opt/pw-browsers in cloud sandboxes — export PLAYWRIGHT_BROWSERS_PATH=/opt/pw-browsers, never playwright install.
  • Full running stack when the loop needs the real UI: tools/agent/boot_stack.sh then cd backend && uv run python ../tools/agent/seed_org.py.

Doc template

# Feedback Loop — <symptom, quoted from the report>

One-paragraph statement of the reported behavior and the claim being validated.

## Root cause (validated)
What actually breaks, citing file:line. Distinguish validated facts from hypotheses.

## Loop A — deterministic reproduction (no external services)
Exact commands + the observed FAIL output. Stub external boundaries (LLMs,
OAuth providers, ODBC) — the loop must run in a clean sandbox.

## Loop B — live confirmation (optional, real credentials)
Only when the premise itself needs a real third party. Secrets via env vars
only — never commit them, never echo them into logs or docs.

## The fix
What changed and where. Re-run Loop A output showing the flip to PASS.

## What this proves / regression notes
What the loop demonstrates; any pre-existing unrelated failures you hit
(verify they reproduce with your change stashed before calling them unrelated).

Rules

  • Loop A must be self-contained — seeded data, stubbed boundaries, no live credentials. Loop B is the exception, not the default.
  • Secrets: env vars only. Never in the doc, the repo, or command output.
  • The reproduction test should survive as a regression test — follow backend/tests/AGENTS.md: assert the general invariant, not the one magic scenario that happened to be reported.
  • If the change affects UI/UX, the loop must include before/after evidence — invoke the ui-evidence skill.

评价

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

评论

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

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

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

0 / 1000 字

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

同一仓库的技能

Add a new data source / connection type (e.g. a SQL Server-like database) end to end — client with get_schemas/execute_query, config + credentials schemas, registry entry, icon, tests — plus the verification steps. Also covers adding or updating an MCP connector (a preset, not a new type). Use when adding or significantly extending a connector.

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

bagofwords1/bagofwords4632026年10月26日 更新

Add a new LLM model to the preset catalog, or a whole new LLM provider — with the mandatory pre-flight verification of model id, pricing, and context window against the provider's official docs. Use when asked to add/update LLM models, providers, or pricing.

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

bagofwords1/bagofwords4632026年10月26日 更新

Query, visualize, and analyze data in a Bag of Words (BOW) workspace via the bagofwords MCP tools. Use for creating reports, running tracked queries, and building dashboards.

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

bagofwords1/bagofwords4632026年10月26日 更新

Update the product docs at docs.bagofwords.com (Mintlify) with text and fresh screenshots after a user-facing change ships. Use when a merged change alters user-visible behavior, adds a feature, or when asked to update/refresh documentation.

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

bagofwords1/bagofwords4632026年10月26日 更新

The locale/i18n architecture of bagofwords — catalogs, resolution order, RTL, backend contracts — and the procedures for adding strings, adding a locale, or translating UI. Use when adding/changing user-facing strings, working on RTL, emails, localized errors, or anything locale-related.

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

bagofwords1/bagofwords4632026年10月26日 更新

qa

免费

Run a live QA pass over the app — first map all user-facing functionality, then boot the full stack and manually exercise flows with Playwright, recording pass/fail evidence and filing a QA report. Use for release QA, post-merge smoke passes, or "QA the app / this area" requests.

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

bagofwords1/bagofwords4632026年10月26日 更新

查看 bagofwords1 的全部技能

报告此技能的问题