SkillsGrove
SkillsGrove/문서 작업/noah-1106/Skills_Repo/web-region-capture

web-region-capture

설치

$npx skills add https://github.com/noah-1106/Skills_Repo --skill web-region-capture
$git clone --depth 1 https://github.com/noah-1106/Skills_Repo.git /tmp/Skills_Repo && mkdir -p ~/.claude/skills && cp -r /tmp/Skills_Repo/skills/web-region-capture ~/.claude/skills/web-region-capture
이 Agent Skill을 설치해 주세요: https://github.com/noah-1106/Skills_Repo/tree/36b71c590f58b700fcd00a9bb99a935da02152b2/skills/web-region-capture — 먼저 SKILL.md와 스크립트를 읽고, 안전하다고 확인한 뒤에만 제 skills 폴더에 설치해 주세요.

요약

원문 설명 · MITCapture explicit, purity-checked web regions into folders or Excel; official lark-cli Base adapter is dry-run by default. Use for repeatable local browser/Excel evidence, not arbitrary one-click website automation.
아래 SKILL.md는 noah-1106/Skills_Repo(커밋 36b71c5)에서 MIT 라이선스에 따라 게시한 것입니다. 본문은 변경하지 않았으며, 파일 상단의 메타데이터만 생략하고 이미지는 링크로 표시하며 매우 긴 파일은 일부만 표시합니다. Copyright 2026 Noah and AI Assistants. 라이선스: LICENSE. 지침 파일만 표시되며 스크립트 등은 원본 저장소를 참고하세요.

web-region-capture

Run from a client-independent project root

This is a Python CLI, not a Codex/Claude/WorkBuddy plugin. Read README.md, config/local.example.json, and config/tasks.m2-example.json. Do not use client-specific APIs. Current working directory does not affect relative project paths.

python -m web_region_capture --root /path/to/project doctor
python -m web_region_capture --root /path/to/project run --config config/tasks.m2-example.json --run-id "我的 任务"

With a fresh checkout run scripts/bootstrap.sh on macOS/Linux or scripts/bootstrap.ps1 on Windows. If the package is not installed, use PYTHONPATH=<root>/src (shell) or $env:PYTHONPATH=<root>/src (PowerShell). Default browser is Playwright-managed Chromium; never assume Chrome or OpenCLI. OpenCLI is not an implemented runner in M2.

Required task contract

  • version: 1; either inline site or site_file.
  • site.start_url: HTTPS or project-root-relative HTML file; optional explicit actions, identity, viewport, headless.
  • Each task has a unique safe task_id, subject_query, nonempty regions; all regions must have site recipes.
  • Folder: destination.type=folder, path.
  • Excel: source_path, path, exact sheet, and cells mapping every region to an A1 cell. Source is never overwritten. .xlsx only; output images are floating cell anchors, not Microsoft 365 Place-in-Cell values.
  • Base: base_token, table_id, record_id, fields mapping every region to an attachment field. Only official lark-cli base +record-upload-attachment --as user is used. Base is not Excel; no A1 coordinates.

All relative paths (including local HTML and workbooks) resolve from --root; Unicode and spaces are supported. No cookie/password/secret belongs in config or logs. Never require a client-provided proprietary browser or Feishu SDK.

Run, evidence and safe rerun

Default --dry-run: capture evidence into data/runs/<run-id>/, but do not write final folder/Excel targets and invoke Base only with lark-cli --dry-run. --execute-local enables local folder/Excel output; it does not authorize Base.

Every run has manifest.json with config fingerprint, region purity evidence, hashes, per-task state. Reusing a run ID without --resume is blocked. --resume skips completed artifacts only if hashes/config fingerprints still match; failed or changed work requires explicit diagnosis/new run. Output conflicts stop instead of overwriting. A dry-run manifest cannot be mistaken for delivered.

needs_readback after a real Base upload is not delivered: official record readback and attachment download/hash comparison must be completed. Real write additionally requires task allow_live_write=true, allow_replace=false, and CLI --authorize-lark-write. Default append only. Never use real Base data for smoke tests; ask Noah to provide an authorized test target.

Validate before declaring completion

python tests/run-offline-poc.py

Evidence must name the activated tests and skipped environments. Windows, OpenCLI, live Base, and external clients are not verified by a macOS local run. For public-site acceptance, use a separate explicitly supplied site/task config; a local fixture is not public-site proof.

라이선스 전문 보기(MIT)
MIT License

Copyright (c) 2026 Noah and AI Assistants

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.