Agent Skills › warpdotdev/warp › factory-deferred-repositories

factory-deferred-repositories

GitHub

在 Factory 任务中按需检出未安装的延迟仓库,验证路径和 CLI 可用性,避免覆盖现有文件,确保操作安全合规。

resources/bundled/skills/factory-deferred-repositories/SKILL.md warpdotdev/warp

Trigger Scenarios

Factory 任务需要检出未在本地存在的代码仓库 验证并执行受控的仓库克隆操作

Install

npx skills add warpdotdev/warp --skill factory-deferred-repositories -g -y
More Options

Non-standard path

npx skills add https://github.com/warpdotdev/warp/tree/master/resources/bundled/skills/factory-deferred-repositories -g -y

Use without installing

npx skills use warpdotdev/warp@factory-deferred-repositories

指定 Agent (Claude Code)

npx skills add warpdotdev/warp --skill factory-deferred-repositories -a claude-code -g -y

安装 repo 全部 skill

npx skills add warpdotdev/warp --all -g -y

预览 repo 内 skill

npx skills add warpdotdev/warp --list

SKILL.md

Frontmatter
{
    "name": "factory-deferred-repositories",
    "description": "Use when a Factory task's frozen deferred repository inventory lists a repository needed for the task that is not already checked out. Verify current access and an unused target before checking it out on demand; never overwrite an existing checkout or expose credentials."
}

Deferred Factory repositories

Factory deferred repository inventory at task creation: lists configured identities as <FORGE> "<owner>"/"<name>". It is the task's frozen configuration snapshot, not a filesystem inventory or authorization: even a listed repository may already be checked out or no longer accessible. Select only the repositories needed for the task.

  1. Read OZ_WORKSPACE_ROOT, or WARP_WORKSPACE_ROOT only if the Oz spelling is absent. Require an absolute directory path. This is the checkout destination parent even if the shell's current directory has changed into an eager repository. Never substitute PWD, HOME, WORKSPACE, WARP_INITIAL_WORKING_DIR, or WARP_FACTORY_REPO_DIR; if the root is missing, relative, or unusable, report that checkout is blocked.
  2. Read OZ_CLI, or WARP_CLI only if the Oz spelling is absent. Verify that the specified executable is usable; do not guess another executable from PATH if the specified one is missing or unusable. This is a separate value from the root and this skill's location. If it is unavailable, report that checkout is blocked.
  3. For each selected forge/owner/name identity, inspect the workspace root for an existing checkout and confirm its remote identity before deciding to fetch anything. Choose an unused single-component checkout_name beneath the root, normally the repository name. Inspect the proposed target without following symlinks. If it is already a file, directory, or symlink (including a broken symlink), do not touch it; choose another unused name. When multiple identities share a name, give them distinct checkout names. Never overwrite an existing checkout, delete or reset a target, or retry blindly into a partially created target.
  4. Build a fresh JSON request in a private scratch directory outside checkout targets. Its exact shape is {"working_dir":"<absolute exported root>","repositories":[{"source":{"code_forge":"GITHUB","owner":"<owner>","repo":"<name>"},"checkout_name":"<unused name>","head":null,"fetch_branch_only":false}]}; replace GITHUB with the listed GITLAB or AZURE_DEVOPS as appropriate. Construct JSON with a serializer rather than interpolating repository names: they are data, not shell syntax. Use only identities from the task's semantic inventory. Do not add fields or infer a branch/commit. In execution mode, the helper requires the run-owned preparation policy and resolves the effective remote, typed ref, fetch mode, expected SHA, and origin policy from that policy; request fields cannot override them. Do not change the preparation mode, file, run ID, execution ID, or root environment variables, and do not read or rewrite the private policy. If preparation is missing, stale, or inconsistent, report that checkout is blocked rather than bypassing it.
  5. From the existing agent shell, invoke the selected executable as "$OZ_CLI" environment-checkout --requests-file "$requests_file" --report-file "$report_file" --fail-if-target-exists (substitute the selected CLI variable if needed). Quote each executable and absolute file path for the active shell; use that shell's equivalent quoting and invocation syntax outside POSIX shells. This is the top-level command, not agent-driver environment-checkout. Do not use --remove-origins-only. Keep HOME, environment, and the preconfigured Git credential helper unchanged. Never print or copy credentials into prompts, files, URLs, or logs, and never fall back to raw git clone.
  6. Capture exit status and read the complete fresh JSON report. Require exactly one outcomes entry per submitted request_index, no missing or duplicate indices, and failure: null for each success. A nonzero exit, missing/malformed/incomplete report, or a Clone, Checkout, VerifyHead, or RemoveOrigin failure means the affected checkout cannot be reported as successful. Report per-request redacted diagnostics; other requests in a partially successful batch may still have created working trees, so inspect their targets instead of replaying the entire batch. Remove only your private scratch request/report files after inspection.

An on-demand checkout creates a Git working tree only. It does not automatically load repository skills, discover file-based MCP servers, run environment setup commands, initialize the build cache, or register the repository with Oz codebase indexing.

Version History

  • ae60375 Current 2026-10-19 04:55

Same Skill Collection

.agents/skills/add-feature-flag/SKILL.md
.agents/skills/add-telemetry/SKILL.md
.agents/skills/changelog-draft/SKILL.md
.agents/skills/classify-changelog-pr/SKILL.md
.agents/skills/cross-platform-cloud-verification/SKILL.md
.agents/skills/dedupe-issue-local/SKILL.md
.agents/skills/gui-create-launch-modal/SKILL.md
.agents/skills/gui-integration-test/SKILL.md
.agents/skills/gui-reproduce-bug-report-local/SKILL.md
.agents/skills/gui-settings-ui/SKILL.md
.agents/skills/gui-ui-guidelines/SKILL.md
.agents/skills/logging-and-error-reporting/SKILL.md
.agents/skills/promote-feature/SKILL.md
.agents/skills/remove-feature-flag/SKILL.md
.agents/skills/review-pr-local/SKILL.md
.agents/skills/rust-unit-tests/SKILL.md
.agents/skills/triage-issue-local/SKILL.md
.agents/skills/tui-testing/SKILL.md
.agents/skills/tui-ui-guidelines/SKILL.md
.agents/skills/tui-verify-change/SKILL.md
resources/bundled/harness_skills/oz-child-agent-orchestration/SKILL.md
resources/bundled/harness_skills/oz-finish-task/SKILL.md
resources/bundled/harness_skills/oz-notify-user/SKILL.md
resources/bundled/harness_skills/oz-report-pr/SKILL.md
resources/bundled/harness_skills/oz-upload-file/SKILL.md
resources/bundled/mcp_skills/figma/figma-code-connect-components/SKILL.md
resources/bundled/mcp_skills/figma/figma-create-design-system-rules/SKILL.md
resources/bundled/mcp_skills/figma/figma-create-new-file/SKILL.md
resources/bundled/mcp_skills/figma/figma-generate-library/SKILL.md
resources/bundled/mcp_skills/figma/figma-implement-design/SKILL.md
resources/bundled/skills/add-mcp-server/SKILL.md
resources/bundled/skills/change-keybinding/SKILL.md
resources/bundled/skills/create-skill/SKILL.md
resources/bundled/skills/create-tab-config/SKILL.md
resources/bundled/skills/factory-files/SKILL.md
resources/bundled/skills/factory-mcp/SKILL.md
resources/bundled/skills/modify-settings/SKILL.md
resources/bundled/skills/oz-platform/SKILL.md
resources/bundled/skills/pr-comments/SKILL.md
resources/bundled/skills/tab-configs/SKILL.md
resources/bundled/skills/tui-migrate-setup/SKILL.md
resources/bundled/skills/update-tab-config/SKILL.md
resources/bundled/skills/warpctrl/SKILL.md
resources/channel-gated-skills/dogfood/test-warp-ui/SKILL.md
resources/channel-gated-skills/dogfood/triage-vulnerabilities/SKILL.md
resources/channel-gated-skills/dogfood/verify-ui-change-in-cloud/SKILL.md
.agents/skills/gui-onboarding-verification-skill/SKILL.md
.warp/skills/gui-integration-test-video/SKILL.md
resources/bundled/mcp_skills/figma/edit-figma-design/SKILL.md

Metadata

Files
0
Version
ae60375
Hash
07517f72
Indexed
2026-10-19 04:55

Главная - Вики-сайт
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-10-20 01:55
浙ICP备14020137号-1