grapeot

Context Infrastructure — DevOps skill for Claude Code

DevOps community

A context and memory system for AI coding agents.

How to install Context Infrastructure

This entry records only its repository, not the path inside it, so there is no exact command to give. Open grapeot/context-infrastructure and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Context Infrastructure does

A context and memory system for AI coding agents. Persistent memory, personal rules, skills, and scheduled observations

Alternatives in DevOps

  • Claude Code Router — Use Claude Code as the foundation for coding infrastructure, allowing you to decide how to interact with the m 30.1k ★
  • Kubeshark — Cluster-wide network observability for Kubernetes 11.8k ★
  • Datachain — The Context Layer for unstructured data: typed, versioned datasets over S3, GCS, Azure 2.8k ★

README

Context Infrastructure — Reference Implementation

English version: [https://github.com/grapeot/context-infrastructure-en](https://github.com/grapeot/context-infrastructure-en)

背景阅读:[为什么AI只会说正确的废话,以及怎么把它逼出舒适区](https://yage.ai/context-infrastructure.html)

这是一个运行了一年的 context infrastructure 系统的完整结构。主要价值是作为 reference implementation,让你看到系统长什么样、数据如何流动、记忆如何积累。

**核心定位**:这不是开箱即用的工具,而是一个可以参考的蓝图。Clone 下来后,你可以立刻体验「有 context vs 没有 context」的差异。但要让 AI 真正变成你自己的,需要从头采集你的行为数据——没有捷径。


Quick Start(5 分钟)

git clone https://github.com/grapeot/context-infrastructure
cd context-infrastructure
# 用 Claude Code / OpenCode / Cursor 打开这个目录

然后:打开 [`rules/USER.md`](rules/USER.md),填写你的基本信息。这是 ROI 最高的一步,完成后 AI 的行为立刻个性化。

详细步骤见 [`setup_guide.md`](setup_guide.md)。

如果你想把它扩展成更完整的工作系统,可以看 [`docs/SKILL_ECOSYSTEM.md`](docs/SKILL_ECOSYSTEM.md)。那里列了一组可单独安装的 public skill repo,例如 Web 搜索、Google Docs、Google Maps、邮件/newsletter、OpenCode、PPTX、社交媒体、支付分析、家庭网络分析和本地 process launcher。`context-infrastructure` 保持轻量;完整能力通过独立 repo 按需安装。


目录结构

context-infrastructure/
├── AGENTS.md                    # 根路由表(AI 每次 session 的起点)
├── setup_guide.md               # 配置指引
├── .env.example                 # 环境变量模板
│
├── docs/
│   ├── CRONTAB.md               # 定时任务配置指南(时间线 + 示例 crontab)
│   └── SKILL_ECOSYSTEM.md       # 可单独安装的 public skill repo 目录
│
├── rules/
│   ├── SOUL.md                  # AI 的身份和行为基调(模板)
│   ├── USER.md                  # 你的偏好和背景(模板)
│   ├── COMMUNICATION.md         # 沟通风格指南(可直接用)
│   ├── WORKSPACE.md             # 目录路由索引
│   ├── axioms/                  # 43 条决策公理(展示层)
│   └── skills/                  # 25+ 个可复用 skill(展示层)
│
├── contexts/
│   ├── memory/
│   │   └── OBSERVATIONS.md      # 三层记忆系统的 L1/L2 层
│   ├── survey_sessions/         # 调研报告存放目录
│   ├── daily_records/           # 日常记录存放目录
│   └── thought_review/          # 思考复盘存放目录
│
├── periodic_jobs/
│   └── ai_heartbeat/
│       ├── docs/
│       │   ├── PRD.md           # 记忆系统设计文档
│       │   └── KNOWLEDGE_B