Token导航 LogoToken导航TokenDH.com
前端设计需要联网github未标认证来源可访问许可证需确认审计异常

habitat-usage栖息地利用

Agent Skill

habitat-usage 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

539

周安装

22

GitHub Stars

21

下载量

174
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:habitat-usage(栖息地利用)
来源仓库:https://github.com/lynx-community/skills
仓库路径:skills/habitat-usage
安装命令:
npx skills add https://github.com/lynx-community/skills --skill habitat-usage
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/lynx-community/skills --skill habitat-usage

简介

habitat-usage 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中整理相关事项。

  • 适用于围绕仓库状态、代码变更或协作事项进行信息整理。
  • 通过处理 GitHub 相关协作信息和代码变更内容提供服务。
  • 安装命令:npx skills add https://github.com/lynx-community/skills --skill habitat-usage。
  • 建议确认权限范围、维护状态及是否触发联网或文件读写操作。

SKILL.md

Habitat Usage Guide

Habitat is a dependency-sync tool for mono-repo-like layouts built from multiple Git repos and asset downloads. This skill provides setup guidance, copy-pastable config snippets, and a troubleshooting checklist for common sync failures.

When to Apply

  • Setting up a “main repo + dependency repos/assets” workspace using .habitat + DEPS
  • Adding or changing dependency types: git repos, nested solutions, HTTP downloads, or custom actions
  • Debugging hab sync failures related to config, auth, network, or integrity checks

Troubleshooting Inputs

When sync fails (fetch errors, permission issues, timeouts), collect:

  • Habitat version and distribution (./hab wrapper in repo, hab.pex, etc.)
  • OS and architecture (darwin/windows/linux + arm64/x86_64)
  • The exact command and full error output (do not paste any secrets)
  • Relevant config snippets:

- .habitat - DEPS (or the file pointed to by deps_file in .habitat)

Installation and Versioning

Prefer committing the Habitat wrapper (hab) and config files (.habitat, DEPS) into the repository so developers and CI use the same version and configuration.

Avoid downloading releases/latest in automation, because it is not reproducible. Instead, pin to a specific release version (tag) and keep that pinned version consistent across developers and CI.

HABITAT_VERSION="0.3.145"
curl -L -o hab "https://github.com/lynx-family/habitat/releases/download/${HABITAT_VERSION}/hab"
chmod +x hab

If you just want to try Habitat locally (not recommended for CI), you can download the latest release:

curl -L -o hab "https://github.com/lynx-family/habitat/releases/latest/download/hab"
chmod +x hab

If you need integrity verification, pin an expected SHA-256 for hab in your repo/CI and verify after download:

EXPECTED_SHA256="<fill-me>"

if command -v shasum >/dev/null 2>&1; then
  echo "${EXPECTED_SHA256}  hab" | shasum -a 256 -c -
else
  echo "${EXPECTED_SHA256}  hab" | sha256sum -c -
fi

Multi-Repo Setup (solutions + deps)

1) Generate .habitat (solution config)

Generate the Habitat config at the main repo root:

./hab config <repo remote uri>

.habitat describes one or more solutions. Minimal example:

solutions = [
    {
        "name": ".",
        "deps_file": "DEPS",
        "url": "git@github.com:namespace/repo.git",
    }
]

Fields:

  • name: solution name, typically "." for the main repo
  • deps_file: dependency manifest path (relative to the main repo root)
  • url: the main repo remote URL (used by the tool/CI)

2) Write DEPS (dependency manifest)

In DEPS, define deps = {...}. The key is the destination path in the main repo, and the value describes the dependency type and parameters.

2.1 git deps (source repositories)

deps = {
    "lib/example": {
        "type": "git",
        "url": "git@github.com:namespace/lib.git",
        "branch": "dev",
    }
}

Notes:

  • Prefer stable refs (e.g., commit) for reproducibility; use branches when you want rolling updates.
  • If the destination directory already exists and contains local changes, decide whether overwriting is acceptable before syncing.

2.2 solution deps (nested solutions)

If a dependency has its own dependency tree, you can bring it in as a solution and sync recursively:

deps = {
    "third_party/some_solution": {
        "type": "solution",
        "url": "git@github.com:namespace/solution_repo.git",
        "branch": "main",
        "deps_file": "DEPS",
    }
}

2.3 http deps (assets/archives/binaries)

Use this to download archives, toolchains, model files, etc. Prefer providing integrity checks for verifiability and reproducibility:

deps = {
    "third_party/tooling": {
        "type": "http",
        "url": "https://example.com/tooling.zip",
        "sha256": "SHA256_HEX",
    }
}

2.4 action deps (custom sync actions)

Use this to run extra steps during sync (generate files, copy assets, apply patches, etc.). Example:

def example_function():
    from pathlib import Path
    import shutil

    dest_dir = Path("scripts/sync_something")
    dest_dir.mkdir(parents=True, exist_ok=True)
    src = dest_dir / "input.txt"
    dst = dest_dir / "output.txt"
    src.write_text("example\n", encoding="utf-8")
    shutil.copyfile(src, dst)

deps = {
    "scripts/sync_something": {
        "type": "action",
        "function": example_function,
    }
}

Sync Dependencies (hab sync)

Run at the main repo root:

./hab sync .

After sync, dependencies are materialized into the paths specified by the keys in DEPS.

Track Config in Version Control

Commit the wrapper and config files to enable one-command bootstrapping for developers and CI:

git add hab .habitat DEPS && git commit -m "Add habitat to manage dependencies."

FAQ / Common Failures

1) git permission/auth failures

Symptoms:

  • Errors like Permission denied, Authentication failed, or Could not read from remote repository

Fix:

  • Ensure the dependency url protocol matches your environment (SSH/HTTPS).
  • For SSH, confirm your SSH key is configured and has access to the target repo.
  • In CI, confirm the runner is provisioned with the right credentials.

2) http integrity check failures (sha256 mismatch)

Symptoms:

  • Download succeeds but integrity verification fails

Fix:

  • Check whether url content changed or redirects to different content.
  • Recompute sha256 for the actual artifact and update sha256 in DEPS.
  • If the URL is rolling (e.g., “latest”), prefer an immutable, versioned URL.

3) Sync hangs/timeouts

Fix:

  • Identify which dependency is slow (temporarily comment out others and bisect).
  • Check proxy settings, DNS, and network reachability.
  • For large git deps, consider pinning to a commit and reducing unnecessary history (if supported by your setup).

Response Format (when assisting users)

When a user asks for help configuring deps, fixing errors, or speeding up sync, respond in this order:

  1. Conclusion first (root cause + fix)
  2. Minimal copy-pastable commands/snippets (.habitat / DEPS / ./hab sync.)
  3. Call out risky operations (overwriting local dirs, rolling deps harming reproducibility, etc.)
  4. If it can still fail, list the next required inputs (version, full error log, relevant config snippets)

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

33.96%
按下载量换算59

Claude

33.34%
按下载量换算58

Cursor

17.99%
按下载量换算31

Gemini CLI

9.53%
按下载量换算17

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

未通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills