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

cognis-skills认知技能

Agent Skill

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

总安装

222

周安装

9

GitHub Stars

10

下载量

70
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/lyzr-cognis/cognis-skills --skill cognis-skills

简介

cognis-skills 为 AI Agent 提供跨会话的持久化记忆能力,支持用户与项目级作用域。

  • 适用于在 Codex、Claude、Cursor、Gemini CLI 中长期任务跟踪与知识积累场景。
  • 需配置 LYZR_API_KEY 获取访问权限,可选设置 COGNIS_OWNER_ID 覆盖默认所有者。
  • 记忆按 owner_id 和 agent_id 分层组织,支持团队共享与私有化存储。
  • 使用前请确保环境变量正确设置,避免越权访问或数据泄露风险。

SKILL.md

Cognis — Persistent Memory for AI Agents

Cognis gives you long-term memory that persists across sessions. Memories are scoped per-user and per-project, with optional team-wide sharing.

Setup

The LYZR_API_KEY environment variable must be set. Get a key at studio.lyzr.ai.

export LYZR_API_KEY="your-key-here"

Optionally set COGNIS_OWNER_ID to override the default owner (system username).

Scoping

Cognis uses two levels of scoping to keep memories organized:

  • owner_id: Identifies the user. Defaults to the system username (whoami). Override with COGNIS_OWNER_ID.
  • agent_id: Identifies the project context.

- Personal scope: claudecode_<sha256(git_root)[:16]> — unique per user per project. - Team scope: repo_<sanitized_repo_name> — shared across all contributors to a repo.

The scripts detect the git root and remote automatically. No manual configuration needed.

Saving Memories

Save something the user wants to remember:

bash scripts/cognis-save.sh "The user prefers PostgreSQL for all new services"

Save a team-wide memory (visible to all repo contributors):

bash scripts/cognis-save.sh "Deploy process: run migrations first, then deploy API, then workers" --team

Read references/api-reference.md for full parameter details.

Searching Memories

Search for relevant memories:

bash scripts/cognis-search.sh "what database do we use"

Search only team memories:

bash scripts/cognis-search.sh "deployment process" --repo

Search both personal and team:

bash scripts/cognis-search.sh "auth setup" --both

Getting Assembled Context

Fetch relevant context (combines short-term and long-term memory):

bash scripts/cognis-context.sh

This returns assembled context for the current project, including relevant personal and team memories.

When to Use Personal vs Team Scope

  • Personal (default): User preferences, individual notes, personal workflow details, things the user says about themselves.
  • Team (--team): Architecture decisions, deployment processes, coding conventions, shared knowledge that any contributor would benefit from.

Gotchas

  • Memories are extracted asynchronously by default. Use the search endpoint to verify a memory was stored (it may take a few seconds).
  • The LYZR_API_KEY must have access to the Cognis memory service. If you get 401/403 errors, read references/quickstart.md for troubleshooting.
  • Scripts output JSON to stdout and diagnostics to stderr. Parse stdout for programmatic use.
  • All scripts are idempotent — safe to retry on transient failures.

Available Scripts

  • scripts/cognis-save.sh — Save a memory (personal or team scope). Run bash scripts/cognis-save.sh --help for usage.
  • scripts/cognis-search.sh — Search memories with semantic matching. Run bash scripts/cognis-search.sh --help for usage.
  • scripts/cognis-context.sh — Get assembled context for the current project. Run bash scripts/cognis-context.sh --help for usage.

References

  • Read references/quickstart.md for first-time setup and verification.
  • Read references/api-reference.md if you need to call the Cognis API directly or need full parameter details.
  • Read references/architecture.md to understand how scoping and memory storage works.
  • Read references/use-cases.md for patterns like session capture, codebase indexing, and team knowledge bases.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

33.12%
按下载量换算23

Claude

30.31%
按下载量换算21

Cursor

18.57%
按下载量换算13

Gemini CLI

9.07%
按下载量换算6

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

敏感数据

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

安装前确认

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

来源信息

继续浏览同类 Skills