q.hikecapital.com

hike-lightyear

山行资本?

First seen Aug 7, 2026

Installation

$ npx skills add https://q.hikecapital.com

Also in this package

Other skills from q.hikecapital.com.

npx skills add https://q.hikecapital.com

Browse all from q.hikecapital.com

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 6,847 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 31 installs

SKILL.md

山行资本(HIKE Capital)内部工具集。

关于 Lightyear (光年)

光年是山行资本内部管理系统,覆盖投资全生命周期:项目 sourcing -> 决策 -> 投后管理。

lightyear_cli

CLI 脚本: scripts/lightyearcli.ts(相对本 skill 目录) API 文档: references/apireference.md

⚠️ 路径与工作目录(agent 必读):本文所有示例命令中的 scripts/lightyearcli.ts 均为相对本 skill 目录(即本 SKILL.md 所在目录)的路径。执行前先确认当前工作目录是否为本 skill 目录;若不是,把示例中的 scripts/lightyearcli.ts 替换为绝对路径 <本 skill 目录>/scripts/lightyearcli.ts 再执行——否则会报 error: Module not found "scripts/lightyearcli.ts"。npx skills add 安装到项目 .agents/skills/hike-lightyear 的场景同理,用安装位置的绝对路径。

前置依赖: 本 skill 的 CLI 脚本依赖 bun 运行时。首次使用前确认已安装:

bun --version

未安装时执行(或提示用户执行):

curl -fsSL https://bun.sh/install | bash

安装后可能需要重开终端让 PATH 生效。若运行命令时报 bun: command not found,即未安装 bun。

配置文件位置:

  • 默认:~/.hike/config.json(用户 home 目录下)
  • 若设置了环境变量 HIKECLICONFIGDIR,则使用 $HIKECLICONFIGDIR/config.json(优先级更高,供各类 Agent 做隔离定制)

查询系统统计

bun run scripts/lightyear_cli.ts stats

获取 Lightyear 系统统计数据。若未配置 key 或 key 失效(401),会自动提示输入。

查询与筛选项目

基本用法:

bun run scripts/lightyear_cli.ts list-projects

常用示例:

# 按阶段筛选
bun run scripts/lightyear_cli.ts list-projects --stage "决策投决会"

# 全文搜索
bun run scripts/lightyear_cli.ts list-projects --query "人工智能"

# 复合查询
bun run scripts/lightyear_cli.ts list-projects \
  --stage "决策投决会" \
  --industry "机器人" \
  --value-min 50000000 \
  --value-max 500000000 \
  --sort value --order desc --limit 10

完整参数说明: 见 [apireference.md](references/apireference.md)

关联项目与人才

将光年项目与人才网络 Seek 中的人才关联(转发到光年 /link-talent)。--company-id 取自 list-projects 返回的 company_id 字段(光年公司 ID)。⚠️ 不是项目本身的 id——传成项目 id 会报 404。

bun run scripts/lightyear_cli.ts link-talent --company-id <id> --talent-id <id>

修改项目摘要(高级权限)

bun run scripts/lightyear_cli.ts update-project --project-id <id> --summary "新的项目摘要"

更新光年项目摘要,对应后端 POST /api-open/lightyear/update-project(Body { project_id, summary })。--project-id 取自 list-projects 返回的 id 字段(字符串)。

🔴 当前仅合伙人可调用(临时权限限制),普通用户返回 403。后续放开后普通 key 也可正常使用。详见 [apireference.md](references/apireference.md)。

API Key 管理

设置 key:

bun run scripts/lightyear_cli.ts set-key

交互式输入 key 并以 0600 权限保存到配置文件(位置见上文「配置文件位置」)。

查看当前 key(脱敏):

bun run scripts/lightyear_cli.ts show-key

脱敏显示(前 8 位 + 后 4 位)。

验证 key / 查看身份:

bun run scripts/lightyear_cli.ts whoami

调用共享的 /api-open/me 端点,显示当前 key 对应的用户身份(姓名、部门等)。这也是验证 key 是否有效的标准方式 -- 请求成功即代表 key 有效;返回 401 则 key 失效,CLI 会提示重新输入。

认证流程

CLI 自动处理认证:

  1. 确定配置位置:检查 $HIKECLICONFIG_DIR

- 已设置 -> 使用 $HIKECLICONFIG_DIR/config.json - 未设置 -> 使用 ~/.hike/config.json

  1. 首次使用:检查配置文件中是否已有 key
  2. 缺少 key:提示用户输入
  3. 401 错误:提示 key 失效,重新输入后重试一次
  4. 成功:key 缓存在配置文件供后续使用

其他错误:

  • 400:"❌ Invalid request parameters." -> 检查参数值与服务器返回详情,用合法参数重试
  • 网络错误:显示错误信息并以退出码 1 退出

获取 API Key:

提示时需访问:https://seek.hikecapital.com/

配置文件格式:

{
  "apiKey": "your-api-key-here"
}

象限(Quadrant) - 山行投资方法论

基于赛道确定性/大小和创始人匹配度/能力两个维度构建:

象限 定义 特点 策略要点
Q1 牛人 + 大赛道 最舒适投资区,中期确定性机会 关注Timing,竞争激烈需判断资源唯一性
Q2 牛人 + 小赛道 六边形团队,细分/阶段性小赛道 投得早、估值低,看增长变量和交易估值
Q3 人弱赛道小/不确定 高赔率的星辰大海类项目 不确定性高,赔率高
Q4 人弱赛道大 风口赛道但团队有短板 必须早期+超大赛道+限出手次数(美元1次/年)

使用 --quadrant 1/2/3/4 筛选对应象限项目。

重要约束

🔴 limit 参数上限

--limit 最大为 200。需要更多结果时用 --offset 分页。

⚠️ 估值展示格式

  • 货币代码在数字前:CNY 200,000,000 或 USD 30,000,000
  • 或中文格式:2亿人民币 或 3000万美元
  • 不要混用,如 200,000,000 CNY 或 2亿 CNY

🔴 不要重新排序结果

排序(含 USD->CNY 换算)全部由服务端完成,按返回顺序原样展示。

⚠️ 估值信息说明(多轮项目)

当同一公司在 Lightyear 中有多轮项目记录时(如天使轮、A轮),所有轮次的 value 字段都显示最新一轮的公司估值,而非该轮次当时的估值。如果查询结果中出现同一公司的多轮项目,需向用户提示此特性。

详细说明: 见 [apireference.md](references/apireference.md)