Guide accessibility reviews for UI, documents, and workflows. Use for WCAG-oriented audits, keyboard review, semantics, contrast, and remediation planning.
中文简介正在准备中。当前显示原文说明。
LocalSetup framework context - overview, invariants, resolver rules, install layout, and skills index. Load first when working in a repo that uses LocalSetup.
中文简介正在准备中。当前显示原文说明。
实测评分 未实测
查看安装方法安装前可以查看交给 AI 代理的指令内容。
This environment uses LocalSetup (LS) for reusable skills, workflows and managed
operations. Load ls-localsetup-project-context first when available. Select
available capabilities from the current client's skill descriptions; use
ls-task-skill-matcher when the match is unclear. Resolve the broader catalog
with localsetup path doc SKILLS.md and localsetup path doc WORKFLOW_REGISTRY.md.
Catalog entries describe capabilities; they do not prove installation or authority.
For observable shell work, use localsetup shell when its capability checks pass
and follow ls-wf-tmux-terminal-mode. Report the execution machine, whether the
owned session was created or joined, and its copyable local join command at
startup and in periodic progress. Preserve native permissions and sandboxing.
Privileged work retains ls-wf-sudo-tmux-session and its controller-owned pane.
Change authored policy owners and generators, never rendered policy tails.
LocalSetup is a repo-local framework for agent context, skills, workflows, adapter materialization, and install/repair tooling. The source checkout may physically contain ls/, but ls/* is a source layout, not a deployed path contract for agents.
Agents should treat ls-localsetup-project-context as the broad entry point for framework behavior. Use it before changing LocalSetup-managed assets, generated docs, adapters, package materialization, doctor repair, or install validation.
Related skill: ls-requesting-code-review - Use when requesting code review before merge or after substantial changes; provide focused requirements, diff range, and severity-calibrated review instructions.
--source-root or inferred by the local tool entrypoint.<source-root>/ls; this contains framework code, source skills, source workflows, docs, templates, tools, and config.<framework-root>/docs; public framework documentation and generated docs live here.<framework-root>/tools; thin tool entrypoints live here.pack.yaml (global.package_root), normally ~/.local/share/localsetup/packages.The Linux baseline is Python 3.12+, POSIX paths, non-interactive shells, custom $HOME, custom --source-root, paths with spaces, user-level install roots, and both symlink and portable adapter modes.
Use resolver-backed paths for agent-facing instructions and deployed package surfaces.
Commands:
localsetup path --json
localsetup path source-root
localsetup path framework-root
localsetup path docs-root
localsetup path tools-root
localsetup path package-root
localsetup path package ls-localsetup-project-context SKILL.md
localsetup path doc WORKFLOW_REGISTRY.md
localsetup path tool tmux_ops
localsetup path --json writes and prints ~/.local/share/localsetup/paths.json. Install, self-refresh, register-shell, and doctor repair also refresh that manifest through LocalSetup-native tooling. If the source root or home changes, rerun one of those commands.
Resolver tokens are allowed in source-authored package files:
localsetup://doc/WORKFLOW_REGISTRY.mdlocalsetup://tool/tmux_opslocalsetup://package/ls-localsetup-project-context/SKILL.mdlocalsetup://package/<package>/<relative/path>During package materialization, resolver tokens are replaced with absolute paths derived from the current resolver manifest and package root. Deployed packages must not contain unresolved localsetup://... tokens.
LocalSetup validates external path inputs at boundaries. Reject NUL bytes, parent traversal, empty path segments, absolute Windows drive paths, home escapes, and unsafe relative segments.
Python subprocess calls should pass argv lists with shell=False. Shell snippets must quote absolute paths safely and avoid unquoted variable expansion.
Do not add symlink fanout into target repos. Use the managed package root and adapter materialization model.
Source packages live under localsetup://package/<name>/... only after materialization. Source skill and workflow directories under <framework-root>/skills and <framework-root>/workflows are authoring inputs.
Adapters such as .codex/skills, .claude/skills, .cursor/skills, .kilo/skills, .openclaw/skills, and .opencode/skills are shared surfaces. Preserve custom adapter content by default. Same-directory custom skills, collisions, or unmanaged content require a repair decision, not silent relocation.
Package materialization copies source packages into the managed package root, rewrites public doc references, bundles public doc closure under references/localsetup/docs, writes a reference-bundle manifest, and validates the deployed package surface.
Materialization omits Python bytecode (*.pyc, *.pyo, and __pycache__/ trees),
matching the source archive's bytecode boundary. It preserves other source assets,
including hidden files and package data; it does not use blanket Git-ignore filtering.
Whole-project reprocessing treats every tracked text-bearing file as a complete unit. It excludes .git, caches, private maintenance state, build artifacts, and ignored runtime state.
Targets include Markdown, Python, shell, YAML, JSON, TOML, text files, executable wrappers, templates, generated docs, workflow manifests, skills, references, scripts, assets, and docs.
For each file, the reprocessor records pre/post hashes and rewrite actions. Source-maintained files may use resolver tokens. Deployed package output must reject ls/..., ./ls/..., ../../docs/..., unresolved localsetup://..., and dangling LocalSetup-owned absolute paths unless the path is intentionally source-only metadata. Preserve Python imports such as ls.core...; those are module imports, not filesystem instructions.
Use localsetup doctor and localsetup doctor repair before manual edits to managed adapter shapes, package markers, registries, lockfiles, shell shims, and resolver manifests.
Doctor detects missing or stale paths.json, stale shell shim exports, old package roots, adapter links pointing at old roots, package marker or registry drift, lockfile mismatch, adapter collisions, package-surface validation failures, and legacy LocalSetup path references.
Repair is conservative:
Public framework docs, generated docs, templates, tests, examples, and package/catalog surfaces are publishable. Create new private maintenance plans, audits, indexes, credentials, logs, caches, ledgers, and planning transcripts only under .agents/state/<task-slug>/; the controller assigns one Git-bound task slug for every agent and tool to reuse. Existing client-specific run directories are historical records and remain in place.
Do not put private task ledgers into ls/docs/ or package surfaces unless explicitly authorized as public framework documentation.
Prefer the existing owner and simplest clear path. Improve or consolidate existing tools, workflows, docs, and checks before creating another one. Add new material or process steps only for a concrete requirement the current owner cannot meet, and keep the addition scoped. See the founding workflow design principle and follow Validation Expectations for check scope.
For long-running interactive work, keep the human operator oriented with concise, periodic progress updates. Use the human progress signal guidance for terminal/TUI formatting and queue counts.
When source docs, workflows, skills, pack metadata, or generated-document inputs change, refresh generated docs from the LocalSetup source checkout. Resolve that checkout first so these source-relative paths do not depend on the caller's working directory:
(
set -euo pipefail
source_root="$(localsetup path source-root)"
cd -- "$source_root"
uv run --locked python ls/tools/generate_docs_artifacts.py --repo-root .
uv run --locked python ls/tools/localsetup.py --source-root . generate-docs
)
Before editing latest/current external claims, check .agents/state/volatile-facts.yaml if it exists. Verify volatile claims from primary upstream sources and keep the volatile fact index private and untracked.
Use focused validation first, then broaden when shared install, package, doctor, or publish behavior changes.
These installed commands can run from a target repository:
localsetup doctor
localsetup doctor repair --repair-mode report-only
localsetup verify --level filesystem
localsetup context --markdown
The remaining validators and tests are source-checkout-only. Resolve and enter the LocalSetup source root before using their checkout-relative paths:
(
set -euo pipefail
source_root="$(localsetup path source-root)"
cd -- "$source_root"
uv run --locked python ls/tools/localsetup.py --source-root . validate-catalog
uv run --locked python ls/tools/localsetup.py --source-root . validate-package-surface
uv run --locked python ls/tools/localsetup.py --source-root . generate-docs
uv run --locked python ls/tools/generate_docs_artifacts.py --repo-root .
uv run --locked ls/tests/automated_test.sh
uv run --locked pytest ls/tests -q
)
Run focused pytest files or test functions and matching LocalSetup validators before the full suite. Resolve the permitted worker count with localsetup test-workers; COMMAND_REFERENCE.md owns its formula and aggregate-budget rule. Use the full suite as final consolidation for broad/shared runtime changes, release or publish work, dependency changes, or explicit user requests.
The default local aggregate test-worker budget is max(1, floor(available logical CPU cores / 3)). A configured positive integer override may increase or decrease that budget, with a hard cap of the available logical CPU count. Resolve and enforce the budget in code from the selected repository configuration; agents and users edit settings, not scheduling calculations. Hosted shard jobs each have an isolated runner CPU and memory budget; matrix concurrency bounds active jobs. Concurrent test processes on one host share that host's budget; they must not each claim it. Preserve stricter native execution limits.
Before publish, run publish preflight against the intended base and keep generated docs/version sync with the repo tooling.
ls/docs/ is public framework documentation, not private maintenance state.localsetup://doc/PYTHON_ARCHITECTURE_STANDARD.md; keep entrypoints thin, package responsibilities explicit, and existing debt baseline-managed.rg, sed, find, wc, and git where appropriate.markdown-rich, markdown-basic, or text-basic.markdown-basic.Use the smallest capable model for inventory and low-risk scouting. Escalate for security, release blockers, architecture, and high-risk review findings only when uncertainty, risk, or complexity justifies it.
For current model names, routing preferences, pricing, limits, and rate-card handling, verify the provider's official documentation or current product source before making cost-sensitive decisions.
localsetup://doc/SKILLS.md.localsetup://doc/_generated/facts.json.<framework-root>/config/pack.yaml; generated view: localsetup://doc/_generated/skill-taxonomy.json.ls-nodejs-nextjs-development: Node.js/Next.js/React runbook.ls-github-starredrepos-sync: GitHub starred repository archive workflow.ls-codex-heartbeat-checks: opt-in heartbeat harness.ls-shadcn-ui-components: shadcn/ui component workflow.ls-omniroute-skills-update: OmniRoute update reporting.ls-typescript-code-quality: TypeScript/TSX code quality.ls-ui-browser-debugging: UI review and browser-driven debugging with Chrome DevTools MCP.Resolve these with localsetup path doc <name> when a directly followable path is needed:
AGENTIC_DESIGN_INDEX.mdWORKFLOW_REGISTRY.mdPRD_SCHEMA_EXTERNAL_AGENT_GUIDE.mdDECISION_TREE_WORKFLOW.mdINPUT_HARDENING_STANDARD.mdTOOLING_POLICY.mdPYTHON_ARCHITECTURE_STANDARD.mdAutomatically load ls-wf-sudo-tmux-session before a request or command
requiring sudo, root/admin privileges, elevation, or a privileged retry. Do
not wait for a workflow reminder or run sudo directly. For Herdr operations,
load ls-herdr-task-routing first and preserve its controller-owned protected-pane path.
Report the credential variable name used, never its value; distinguish empty
or unavailable candidates from cached sudo readiness and manual authentication.
Authentication readiness does not authorize additional commands.
For Herdr pane, task, remote setup, or upgrade work, load ls-herdr-task-routing first;
it owns provenance and routes to the relevant specialist in the normal ops pack.
Treat as batch when the request has multiple distinct subtasks or asks to run the whole workflow.
If the user names a specific skill, load it directly.
If uncertain which skill fits, or the user asks what skill to use, load ls-task-skill-matcher.
Keep matching behavior short here; detailed matching belongs to ls-task-skill-matcher.
Run inexpensive checks and focused tests while editing. One successful full suite for the final candidate is sufficient; authoritative CI may provide it. Do not run another local suite or repeat a successful suite for the same tested inputs just because a task moves from PR to main or publication. Record the commit, environment, command/workflow, and result; invalidate evidence only when relevant inputs change. Bound long jobs, preserve successful jobs when retrying an understood failure, and stop automatic retries on an unexplained failure. Complete source changes and the release record before generating final docs.
LocalSetup's hosted implementation derives its shard matrix and concurrency from the repository's testing configuration, with each shard using the available CPUs of its isolated runner and an all-shards success gate and exact-commit Actions evidence. The publishing workflow checks that evidence before building instead of running the full suite again. See repository maintenance.
还没有评价。欢迎分享你的使用感受。
无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。
还没有评论。来写第一条吧。
Guide accessibility reviews for UI, documents, and workflows. Use for WCAG-oriented audits, keyboard review, semantics, contrast, and remediation planning.
中文简介正在准备中。当前显示原文说明。
Use when choosing a LocalSetup Agent-* lane for exploration, research, bounded implementation, or review. Consult the static capability matrix; do not probe account or network availability.
中文简介正在准备中。当前显示原文说明。
Guide agent email inbox workflows with prompt-injection defenses. Use for inbound email processing, webhooks, routing, and safety review.
中文简介正在准备中。当前显示原文说明。
Navigate and understand codebases using agentlens hierarchical documentation. Use when exploring new projects, finding modules, locating symbols in large files, finding TODOs/warnings, or understanding code structure.
中文简介正在准备中。当前显示原文说明。
Use for Agent Q signed encrypted file-drop or mail ship and ingest, private registry v2 setup, queue status, and transport maintenance.
中文简介正在准备中。当前显示原文说明。
Inventory wrapper for the alirezarezvani Claude skills bundle. Use when triaging its broad skill catalog and large script surface before any targeted import.
中文简介正在准备中。当前显示原文说明。