复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-claude-skills-0d3f9868228e ,按照其中的说明把「file-management」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
Reference for: Common Ground Load when: Storage operations, project identification, file format
Ground files are stored in the user's Claude home directory:
~/.claude/common-ground/
├── index.md # Global registry of all projects
└── {project-id}/
├── COMMON-GROUND.md # Human-readable assumptions
├── ground.index.json # Machine-readable index
└── archive/
└── {timestamp}-{reason}.md # Archived versions (future)
git remote get-url origin 2>/dev/null
Example outputs:
https://github.com/user/repo.git -> project_id: github.com/user/repogit@github.com:user/repo.git -> project_id: github.com/user/repoNormalization rules:
https://, git@).git suffix: with / for SSH URLsIf no git remote found:
pwd
Example:
/home/user/projects/my-app -> project_id: local/home-user-projects-my-appNormalization rules:
local// with -Located at: ~/.claude/common-ground/index.md
# Common Ground: Project Registry
Last Updated: {timestamp}
## Tracked Projects
| Project | ID | Assumptions | Last Check |
|---------|----|-----------:|------------|
| {name} | {project_id} | {count} | {date} |
---
*Auto-generated by /common-ground command*
Located at: ~/.claude/common-ground/{project_id}/COMMON-GROUND.md
# Project Common Ground
**Project:** {project_name}
**Project ID:** {project_id}
**Created:** {created_timestamp}
**Last Updated:** {updated_timestamp}
---
## ESTABLISHED
High confidence assumptions. Treat as premises.
### {id}: {title}
- **Type:** {stated|inferred|assumed}
- **Assumption:** {description}
- **Source:** {evidence or citation}
- **Validated:** {date}
- **Context:** {when this applies}
---
## WORKING
Medium confidence. Use but flag if contradicted.
### {id}: {title}
- **Type:** {stated|inferred|assumed}
- **Assumption:** {description}
- **Source:** {evidence or citation}
- **Validated:** {date}
- **Context:** {when this applies}
---
## OPEN
Low confidence. Ask before assuming.
### {id}: {title}
- **Type:** {stated|inferred|assumed|uncertain}
- **Assumption:** {description}
- **Source:** {evidence or citation}
- **Validated:** {date}
- **Context:** {when this applies}
---
## History
| Date | Action | ID | Details |
|------|--------|------|---------|
| {date} | {Created/Promoted/Demoted/Archived} | {id} | {details} |
---
*Managed by /common-ground command*
Format: A{number} (e.g., A001, A002, A003)
Located at: ~/.claude/common-ground/{project_id}/ground.index.json
{
"version": "1.0",
"project_id": "{project_id}",
"project_name": "{human_readable_name}",
"created": "{ISO_timestamp}",
"last_updated": "{ISO_timestamp}",
"next_id": 4,
"assumptions": [
{
"id": "A001",
"title": "{short_title}",
"type": "stated|inferred|assumed|uncertain",
"tier": "ESTABLISHED|WORKING|OPEN",
"assumption": "{full_description}",
"source": "{evidence}",
"validated": "{ISO_date}",
"context": "{when_applies}",
"created": "{ISO_timestamp}",
"history": [
{
"date": "{ISO_timestamp}",
"action": "created|promoted|demoted",
"from_tier": null,
"to_tier": "WORKING",
"reason": "{optional}"
}
]
}
],
"archived": []
}
| Field | Type | Description |
|---|---|---|
version | string | Schema version for migrations |
project_id | string | Unique project identifier |
project_name | string | Human-readable project name |
next_id | number | Next assumption ID to assign |
assumptions | array | Active assumptions |
archived | array | Archived assumptions (future) |
~/.claude/common-ground/ exists, create if not{project_id}/ directoryCOMMON-GROUND.md from templateground.index.json with empty assumptionsindex.mdground.index.jsonlast_updated timestampCOMMON-GROUND.md from index.jsonindex.md counts{project_id}/ground.index.json existsground.index.json is source of truthCOMMON-GROUND.md is generated from index.json| Scenario | Action |
|---|---|
| No home directory access | Warn user, suggest alternate path |
| Corrupted index.json | Backup and regenerate from COMMON-GROUND.md |
| Missing project directory | Create fresh on next run |
| Permission denied | Report error with path |