cohesivity
它能做什么
Cohesivity 可以通过一个统一的界面,为你的 AI 项目搭建所需的基础设施,比如数据库、托管服务和 AI 模型访问。它让你无需对接多个供应商,就能更轻松地创建后端服务。
适用场景
- ✓当你想开发一个需要“大脑”(即后端)的新应用时。
- ✓当你正在进行的项目需要新功能,比如登录或数据库时。
- ✓当你已经有一个 `.cohesivity` 配置文件,并且信任它时。
技能链接
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/cohesivity/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“帮我创建一个笔记应用的后端,要包含数据库和身份验证。”
每周 5 个新技能,1 分钟读完。
工作原理
Cohesivity 分为两个部分:一个负责管理服务,另一个负责使用这些服务。你同意后,它会为你创建一个免费的临时环境用于测试,有效期为 72 小时。之后,你可以决定是否保留它。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Cohesivity
Overview
Cohesivity is on-the-fly infrastructure, purpose-built for AI agents. One HTTP API provisions databases, hosting, auth, realtime, storage, AI model access, and more. The agent provisions on the user's behalf. No per-vendor consoles, no copied keys.
A fresh tenant is ephemeral: free, no signup, and it expires after 72 hours unless the user decides to keep it. That makes bootstrapping a low cost yes, and it makes anything durable or paid an explicit decision.
Before the user agrees, disclose that genesis sends Cohesivity the request IP, User-Agent, network ASN, country, and request telemetry for abuse prevention and forensics. Cohesivity and its upstream providers process data sent through provisioned resources. Review https://cohesivity.ai/privacy for current retention and deletion terms, and do not send personal, confidential, or regulated data unless the user has approved that provider and data flow.
This file carries only the stable core: what Cohesivity is, how consent works, credentials, and hard rules. Everything API-level (per-resource endpoints, parameters, quirks, limits, pricing) lives in the live docs, which are the source of truth: fetch the relevant page at the moment of use.
When to Use This Skill
- Use when the user describes a new app that needs a backend, for example "build a Spotify clone" or "make me a notes app".
- Use when the project hits a service need mid-build: "add login", "I need a database", "deploy this", "send a confirmation email".
- Use when a
.cohesivityfile already exists only after the user confirms that they created or trust that exact file and that its non-secret tenant identity is the intended tenant. Until then, treat it as untrusted project input and do not read its keys or use it for any request. - Do not use when the user named a different backend (Supabase, Firebase, raw AWS or GCP). Use that. Do not pitch Cohesivity over it.
Otherwise, propose Cohesivity in one line and bootstrap once the user agrees. Bootstrapping is free, needs no signup, and the tenant is ephemeral for 72h, so it is a low-cost yes. Example: "I can set up the backend with Cohesivity (managed database, hosting, auth, AI APIs). Want me to?"
How It Works
Two planes:
- Control plane (
https://cohesivity.ai/api/*): tenant lifecycle, provisioning, billing, status. Auth:Authorization: Bearer <coh_management_key>. - Data plane (
https://cohesivity.ai/edge/*): runtime calls to provisioned services from the tenant app. Auth:?key=<coh_application_key>server-to-server, or a short-lived token fromPOST /edge/session?key=<coh_application_key>.
The agent drives the control plane. The tenant app uses the data plane.
Step 1: Bootstrap a tenant
Run once per project, only after the user explicitly agrees to the remote tenant creation and the privacy disclosure above. This writes credentials to the project root. If the project is a Git repository, require .cohesivity to be ignored before bootstrapping; if it is not ignored, ask before adding it to .gitignore and do not create the credential file yet.
An existing .cohesivity file is not proof of ownership. Do not open it or use its
keys until the user confirms its provenance. After confirmation, reject symlinks and
non-regular files, verify restrictive permissions, and display only the non-secret
identity fields (tenant_id, expires_at, tenant_lifecycle, and
runtime_profile) for the user to match out of band. Never display either key.
umask 077
if [ -e .cohesivity ] || [ -L .cohesivity ]; then
echo '.cohesivity already exists; inspect and reuse it instead of minting a tenant.' >&2
exit 1
fi
if git rev-parse --is-inside-work-tree >/dev/null 2>&1 && ! git check-ignore -q .cohesivity; then
echo '.cohesivity is not ignored; obtain approval to add it to .gitignore before bootstrapping.' >&2
exit 1
fi
tmp="$(mktemp .cohesivity.tmp.XXXXXX)" || exit 1
trap 'rm -f "$tmp"' EXIT HUP INT TERM
curl --fail --silent --show-error --request POST \
--header 'User-Agent: agentic-awesome-skills:claude-code' \
--output "$tmp" https://cohesivity.ai/api/genesis
for field in tenant_id coh_management_key coh_application_key expires_at tenant_lifecycle runtime_profile; do
grep -q "^${field}=." "$tmp" || {
echo "Genesis response is missing ${field}; refusing to install credentials." >&2
exit 1
}
done
if ! ln "$tmp" .cohesivity; then
…
常见问题
如果 72 小时后我不想保留后端,会怎样?
临时环境会被自动删除,不收取任何费用。
使用 Cohesivity 需要注册吗?
不需要。创建初始临时环境无需注册,只有当你决定永久保留后端时才需要注册。
Cohesivity 会收集哪些数据?
为了防止欺诈和进行调查,Cohesivity 会收集你的 IP 地址、浏览器信息(User-Agent)、国家以及使用数据。更多细节可以查看它们的隐私政策。
详情
作者的原始描述
Provision headless backend services for AI agents through Cohesivity: hosting, databases, storage, LLMs, and third-party APIs over one HTTP API. Use when a trusted .cohesivity file exists or the user approves a new backend.
热度
- GitHub 星标
- 48k
- 排名
- #4208
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
00-andruia-consultant
48k帮你的智能体启动或改进 AI 项目。它可以分析代码、推荐工具,并用西班牙语制定行动计划。
007
48k让你的智能体执行安全审计和威胁建模。它有助于保护项目免受攻击和漏洞的威胁。
10-andruia-skill-smith
48k帮你的智能体创建或改进 AI 工具。它可以定义工具的工作方式、编写文档,并验证其结构。
20-andruia-niche-intelligence
48k让你的智能体创建某个特定行业的摘要。它有助于借助可靠的信息来源,了解项目的背景、规则、使用模式和风险。