Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问许可证需确认审计提醒

coregitcoregit 搜索

Agent Skill

coregit 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

267

周安装

11

GitHub Stars

公开资料未说明

下载量

87
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/strayl-inc/skills --skill coregit

简介

coregit 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。

  • 它是无服务器 Git 托管平台,通过 REST API 实现仓库创建、文件提交、分支差异对比和合并操作。
  • 无需使用 git CLI,支持 cherry-pick、搜索等功能,适用于 AI 代理工作流中的版本控制需求。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。
  • coregit 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Coregit

Coregit is a serverless Git hosting platform. Create repos, commit files, read code, diff branches, merge, cherry-pick, search — all via REST API. No git CLI needed.

  • API base: https://api.coregit.dev
  • Dashboard: https://app.coregit.dev
  • Docs: https://docs.coregit.dev
  • SDK: npm install @coregit/sdk
  • CLI: npm install -g @coregit/cli (binary: cgt)

When to use

  • User asks to set up a git backend or version control for their app
  • User wants to commit, read, or diff files via API (not git CLI)
  • User mentions "coregit" by name
  • User needs a serverless git repo for an AI agent workflow

Onboarding a new user

If the user does not have a Coregit API key, run this flow:

Step 1: Ask for email and name, send verification code

npx coregit-wizard@latest --email <USER_EMAIL> --name <USER_NAME>

This installs the CLI and skill, then sends a 6-digit verification code to the email. Ask the user to check their inbox.

Step 2: Verify with code and get API key

npx coregit-wizard@latest --email <USER_EMAIL> --code <6_DIGIT_CODE>

This verifies the code, creates the account/org/API key, and stores credentials via cgt auth login. If the user already has an account, it creates a new key for their existing org.

Step 3: Output summary

After setup, output a summary:

Using the CLI (preferred for agents — saves tokens)

After cgt auth login, all commands use stored credentials automatically. Output is JSON.

Repositories

cgt repos create my-project
cgt repos list
cgt repos get my-project
cgt repos delete my-project

Commit files

# From local files (path_in_repo:local_file)
cgt commit my-project -b main -m "feat: init" \
  -f src/index.ts:./index.ts -f README.md:./README.md

# Inline content (path:=content)
cgt commit my-project -b main -m "add config" \
  -f config.json:='{"port": 3000}'

# From stdin (JSON array)
echo '[{"path":"src/app.ts","content":"console.log(1)"}]' | cgt commit my-project -b main -m "add app"

Read files

cgt tree my-project main              # list files
cgt blob my-project main src/app.ts   # read file (JSON)
cgt blob my-project main src/app.ts --raw  # raw content

Branches

cgt branches create my-project feature-x --from main
cgt branches list my-project
cgt branches merge my-project feature-x
cgt branches delete my-project feature-x

Diff & Compare

cgt diff my-project main feature-x --patch
cgt compare my-project main feature-x

Commits

cgt log my-project --ref main --limit 10

Search (full-text)

cgt search "TODO" --repos my-project --ref main
cgt search "function.*Async" --repos my-project --regex

--ref accepts branch name or commit SHA.

Semantic search (AI-powered)

# 1. Index the repo
cgt index create my-project -b main

# 2. Check status (poll until "ready")
cgt index status my-project

# 3. Search by natural language
cgt semantic-search my-project "user authentication with password hashing" --ref main

# Search at a specific commit
cgt semantic-search my-project "auth logic" --ref 8b7d315321...

Snapshots

cgt snapshots create my-project v1-backup -b main
cgt snapshots list my-project
cgt snapshots restore my-project v1-backup

Workspace (execute commands)

cgt exec my-project "npm install && npm run build" -b main --commit --commit-message "build output"

Clone with standard git

git clone https://ORGSLUG:cgk_live_...@api.coregit.dev/ORGSLUG/my-project.git

REST API (alternative to CLI)

All requests require header x-api-key: cgk_live_.... Use the CLI above when possible — it's shorter and handles auth automatically.

# Create repo
curl -X POST https://api.coregit.dev/v1/repos \
  -H "x-api-key: $COREGIT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"slug": "my-project"}'

# Commit files
curl -X POST https://api.coregit.dev/v1/repos/my-project/commits \
  -H "x-api-key: $COREGIT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"branch":"main","message":"init","author":{"name":"Agent","email":"a@a.dev"},"changes":[{"path":"app.ts","content":"console.log(1)"}]}'

# Search
curl -X POST https://api.coregit.dev/v1/search \
  -H "x-api-key: $COREGIT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"q":"TODO","repos":["my-project"],"ref":"main"}'

# Semantic search
curl -X POST https://api.coregit.dev/v1/repos/my-project/semantic-search \
  -H "x-api-key: $COREGIT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"q":"auth logic","ref":"main"}'

Key API endpoints

MethodEndpointDescription
POST/v1/reposCreate repo
GET/v1/reposList repos
POST/v1/repos/:slug/commitsCommit files
GET/v1/repos/:slug/commitsList commits
GET/v1/repos/:slug/tree/:refList files
GET/v1/repos/:slug/blob/:ref/:pathRead file
POST/v1/repos/:slug/branchesCreate branch
GET/v1/repos/:slug/branchesList branches
POST/v1/repos/:slug/branches/:name/mergeMerge
GET/v1/repos/:slug/diff/:ref1/:ref2Diff
POST/v1/repos/:slug/snapshotsCreate snapshot
POST/v1/repos/:slug/execRun shell command
POST/v1/searchCross-repo code search
POST/v1/repos/:slug/semantic-searchAI semantic search
POST/v1/repos/:slug/indexTrigger semantic index
GET/v1/repos/:slug/index/statusIndex status

LLM Wiki (knowledge bases)

Create persistent, version-controlled knowledge bases maintained by LLM agents. Based on the LLM Wiki pattern by Andrej Karpathy.

A wiki is a Coregit repo with 3 layers: raw/ (immutable sources), wiki/ (LLM-generated pages), and schema.md (agent instructions).

Create a wiki

cgt wiki init my-research --title "AI Research" --description "Deep dive into transformers"

Wiki operations

# List pages (with parsed frontmatter)
cgt wiki pages my-research
cgt wiki pages my-research --type concept --tag deep-learning

# Read a page
cgt wiki page my-research transformers.md
cgt wiki page my-research transformers.md --raw

# List and read raw sources
cgt wiki sources my-research
cgt wiki source my-research attention-paper.md --raw

# Browse wiki structure
cgt wiki index my-research        # content catalog (index.md)
cgt wiki log my-research          # activity log (log.md)

# Generate llms.txt for external LLM consumption
cgt wiki llms-txt my-research --format full

# Semantic search (searches both wiki pages AND raw sources)
cgt wiki search my-research "how does attention work" --scope all

# Knowledge graph (nodes, edges, tag clusters)
cgt wiki graph my-research

# Health stats (pages, sources, orphans, word counts)
cgt wiki stats my-research

Ingest workflow (agent writes wiki pages via commits)

# 1. Add a source to raw/
cgt commit my-research -b main -m "add source" \
  -f raw/paper.md:./paper.md

# 2. Agent processes source → creates/updates wiki pages + index + log (atomic commit)
echo '[
  {"path":"wiki/transformers.md","content":"---\ntitle: \"Transformers\"\nsummary: \"...\"\ntags: [deep-learning]\ntype: concept\nsources: [raw/paper.md]\n---\n\nContent..."},
  {"path":"index.md","content":"# Index\n\n## Concepts\n- [Transformers](wiki/transformers.md): ..."},
  {"path":"log.md","content":"# Log\n\n## [2026-04-10] ingest | Paper\nCreated wiki/transformers.md."}
]' | cgt commit my-research -b main -m "ingest: paper"

Wiki API endpoints

MethodEndpointDescription
POST/v1/repos/:slug/wiki/initCreate wiki from template
GET/v1/repos/:slug/wiki/pagesList pages with frontmatter
GET/v1/repos/:slug/wiki/pages/:pathRead single page (parsed)
GET/v1/repos/:slug/wiki/sourcesList raw sources
GET/v1/repos/:slug/wiki/sources/:pathRead raw source
GET/v1/repos/:slug/wiki/indexGet index.md
GET/v1/repos/:slug/wiki/logGet log.md (parsed)
GET/v1/repos/:slug/wiki/llms.txtAuto-generated llms.txt
POST/v1/repos/:slug/wiki/searchSemantic search (wiki + sources)
GET/v1/repos/:slug/wiki/graphKnowledge graph
GET/v1/repos/:slug/wiki/statsWiki health stats

Important notes

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

37.44%
按下载量换算33

Claude

32.98%
按下载量换算29

Cursor

17.17%
按下载量换算15

Gemini CLI

10.1%
按下载量换算9

安全审计

Gen Agent Trust Hub

通过

Socket

可疑

Snyk

可疑

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

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

来源信息

继续浏览同类 Skills