Token导航 LogoToken导航TokenDH.com
AI 工具执行命令github未标认证来源可访问clear审计通过

project-context项目背景

Agent Skill

project-context 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1,257

周安装

54

GitHub Stars

12

下载量

441
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/scientiacapital/skills --skill project-context

简介

用于处理 GitHub 仓库、Issue 和 Pull Request 信息。

  • 适合在协作开发中同步代码变更和讨论进展。
  • 可自动构建项目状态快照供后续引用。
  • 安装命令:npx skills add https://github.com/scientiacapital/skills --skill project-context
  • 需确保具备读取私有仓库或 API 访问权限。

SKILL.md

<quick_start> Session start: Load <project-root>/.claude/PROJECT_CONTEXT.md, verify against git status

Session end: Update context file with completed TODOs, clear previous session's Done list

Context file location: <project-root>/.claude/PROJECT_CONTEXT.md

Triggers: "load context", "save context", "done for today", "switch to [project]" </quick_start>

<success_criteria> Context management is successful when:

  • Project detected from pwd (Claude Code) or user input (Claude Desktop)
  • Context file matches current project (header verified against folder name)
  • Git state verified against context (branch, recent commits)
  • Done list cleared each new session (prevents accumulation)
  • Context saved before session ends </success_criteria>

<core_content>

MANDATORY: Project Detection (Run First)

Before ANY other action, identify which project the user is in:

Claude Code (Terminal)

pwd  # Get current working directory
  1. Run pwd to get current directory
  2. Extract project name from path (last folder name)
  3. Load <pwd>/.claude/PROJECT_CONTEXT.md
  4. VERIFY: Does the # <project-name> header match the folder name?

- YES → Display context and proceed - NO → WARN: "Context mismatch! File says [X] but you're in [Y]. Regenerating..." - FILE MISSING → Auto-generate (see below)

Claude Desktop (No Terminal)

If pwd is unavailable (Claude Desktop environment):

  1. Check if user already specified a project in their message
  2. If not, ASK: "Which project are you working on today?"
  3. Use the projects list at reference/projects-list.md if available
  4. Load: /Users/tmkipper/Desktop/tk_projects/{project-name}/.claude/PROJECT_CONTEXT.md

To switch projects: User says "switch to [project-name]" or "working on [project]"


On Session Start

After project detection:

1. Load Context File

<project-root>/.claude/PROJECT_CONTEXT.md

2. Verify Against Git State

git status            # Current branch, modified files
git log --oneline -5  # Recent commits

Flag discrepancies:

  • TODO marked done in commits? → Move to "Done"
  • Branch changed? → Update context header
  • Stale info? → Remove it

3. Display to User

Show a brief summary:

📍 Project: [name]
🌿 Branch: [branch]
📅 Last updated: [date]

Focus items: [count]

On Session End

Triggers: "done", "end session", "save context", "done for today"

  1. Review conversation for completed work
  2. Update PROJECT_CONTEXT.md:

- Move completed TODOs to "Done (This Session)" - Update Status based on commits made - Preserve untouched Focus items - Clear previous session's Done list (prevents accumulation) - Update timestamp

  1. Show user the updated context

Auto-Generate Context

When no PROJECT_CONTEXT.md exists, create from:

  1. .claude/CLAUDE.md or CLAUDE.md (project docs)
  2. git log --oneline -5 (recent activity)
  3. git status (current state)
  4. package.json / pyproject.toml / requirements.txt (tech stack)

Write to: <project-root>/.claude/PROJECT_CONTEXT.md


Context File Format

See reference/template.md for full template.

# <project-name>

**Branch**: <branch> | **Updated**: <YYYY-MM-DD>

## Status
<2-3 sentences: current state>

## Today's Focus
1. [ ] <task>
2. [ ] <task>

## Done (This Session)
- <populated on session end, cleared on next session start>

## Blockers
<none or list>

## Tech Stack
<single line: Python 3.11 | FastAPI | PostgreSQL>

Key Rules

  1. ALWAYS detect project first - Never assume from previous session
  2. One project = one context file - No cross-contamination
  3. Verify context matches pwd - Warn on mismatch
  4. Clear Done list each session - Prevents infinite accumulation
  5. Never store data in this SKILL.md - Always use project's own file

Reference Files

  • reference/template.md - Full context file template with examples
  • reference/projects-list.md - Tim's projects list for Claude Desktop

Emit Outcome Sidecar

As the final step, write to ~/.claude/skill-analytics/last-outcome-project-context.json:

{"ts":"[UTC ISO8601]","skill":"project-context","version":"1.0.0","variant":"default",
 "status":"[success|partial|error]","runtime_ms":[estimated ms from start],
 "metrics":{"projects_detected":[n],"context_files_updated":[n]},
 "error":null,"session_id":"[YYYY-MM-DD]"}

Use status "partial" if some stages failed but results were produced. Use "error" only if no output was generated. </core_content>

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

补充不同宿主或平台的使用分布数据

能力 5

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

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

平台分布

Claude Code

28.71%
按下载量换算127

Gemini CLI

21.79%
按下载量换算96

Codex

19.66%
按下载量换算87

Antigravity

12.54%
按下载量换算55

OpenCode

7.99%
按下载量换算35

windsurf

3.5%
按下载量换算15

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/scientiacapital/skills --skill project-context;npx skills add scientiacapital/skills --skill "project-context" 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills