Token导航 LogoToken导航TokenDH.com
前端设计只读github未标认证来源可访问许可证需确认审计通过

project-context-migration项目上下文迁移

Agent Skill

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

总安装

544

周安装

22

GitHub Stars

7

下载量

171
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

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

简介

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

  • 适合在系统重构或迁移过程中跟踪代码归属和责任转移。
  • 支持跨仓库上下文映射和依赖关系可视化。
  • 安装命令:npx skills add https://github.com/perhapsspy/project-context --skill project-context-migration
  • 建议配合版本控制系统使用以避免数据不一致。

SKILL.md

Project Context Migration

Purpose

Audit scattered repository docs and notes before moving the right working context into project-context. This companion skill assumes the main project-context skill is installed alongside it. If the repo is effectively empty and there is nothing to migrate, use project-context instead.

Use / Do Not Use

  • Use this skill when a repo already has scattered docs or partial working-context material that needs to be sorted into the project-context layout.
  • Use it when you need to classify source docs into TASK, REFERENCE, LEAVE, or ARCHIVE.
  • Do not use it for empty or nearly empty repos with nothing meaningful to migrate.
  • Do not treat migration as a blind move-everything operation.

Core Bias

  • Audit first, move second.
  • Keep only agent working context inside project-context; leave human-facing or repository-narrative docs where they already belong unless there is a strong reason to move them.
  • When unsure, start in TASK rather than over-promoting into REFERENCE.
  • Migration correctness depends on explicit mapping and spot review, not on destination shape alone.

Classification

  • TASK: task-local, historical, exploratory, uncertain, or migration-audit material. Start here when unsure.
  • REFERENCE: current trusted project-domain context by topic. Rewrite to current state, strip timeline noise, and keep only principles, rules, and recently reliable facts another task can directly use.
  • LEAVE: product/user/team docs, human-facing top-level notes, and origin/about/repository narrative that do not belong in agent working context.
  • ARCHIVE: stale duplicates or superseded docs if the user wants cleanup; it is a migration decision, not a core project-context destination.
  • Common mappings: runbook -> reference; task note -> task; ADR -> current conclusion to reference / superseded to archive; repo-root instruction notes and origin/about/repository docs usually stay LEAVE.

Operating Model

  1. Read ../project-context/SKILL.md to review the target layout.
  2. Create one dated migration task under docs/tasks/... first and use it as the audit surface for the whole move.
  3. Inventory likely source roots with rg --files across common context directories and repo-root instruction files when present.
  4. Before mapping, ask whether each source belongs in agent working context at all.
  5. Build an audit map before editing: path | kind | current-or-stale | scope | target | note.
  6. Apply in order: TASK -> REFERENCE -> LEAVE/ARCHIVE.
  7. Once the target tree exists, run the main project-context runtime-shape check.
  8. Treat that check as destination-shape confirmation only; migration correctness still depends on the audit map and spot review.

Rules

  • Record audit decisions in the migration task before rewriting global files.
  • Merge overlapping sources into one preferred destination reference file or one dated task.
  • When migration creates or updates REFERENCE, keep canonical content in the reference file and record mapping, rationale, and change trace in the migration task.
  • Normalize saved doc paths to repo-relative paths or stable placeholders.
  • Before promoting anything into REFERENCE, ask whether another task would reuse it as agent working context. If not, prefer TASK, LEAVE, or ARCHIVE.
  • When migration creates new tasks, follow the current project-context task-file shape guidance. If BRIEF.md and logs are not enough, keep extra task-local docs for the missing detail instead of forcing everything into the brief. If those docs are temporary agent working material, prefer role-named files under working/ instead of new generic checklist files at the task root.
  • When migration writes a task BRIEF.md, keep Scope short and keep source inventories, validation checklists, and comparison detail in the audit map or task-local docs instead of thickening the brief.
  • When the migration task appends to logs/*.md, use the bundled project-context scripts/task_logs.py path instead of hand-editing the logs during normal flow.
  • If migration consolidates a long-running task area, keep the root focused on BRIEF.md plus canonical current docs. A repo-local helper lane such as working/ stays optional and should exist only when it clearly lowers reopen cost.
  • Keep migrated WORKLOG.md entries to meaningful execution deltas; keep ordinary lint/test reruns out of BRIEF.md unless they change current confidence, state, or the next action.
  • If a task item has no trustworthy date, use the migration date and record the uncertainty in that task.
  • When unsure between REFERENCE and LEAVE for a human-facing top-level doc, bias toward LEAVE. If the rollout must be staged, move high-value task/reference material first.

Anti-Patterns

  • Moving docs into REFERENCE just because they are technical, even when they are not reusable working context.
  • Using the runtime-shape check as proof that the migration itself is correct.
  • Rewriting or deleting global docs before the migration task has an explicit audit map.
  • Promoting uncertain or stale material into REFERENCE instead of starting in TASK.
  • Treating LEAVE as failure; many docs should remain outside the agent working-context surface.

Final Gates

  • Does the migration task explain why each moved source became TASK, REFERENCE, LEAVE, or ARCHIVE?
  • Is current trusted reference context rewritten into current-state reference docs instead of copied over with stale timeline noise?
  • Are uncertain, exploratory, or historical materials kept in tasks instead of over-promoted?
  • Did the destination tree pass the main project-context runtime-shape check?
  • Did the rollout preserve human-facing docs that do not belong in agent working context?

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

37.34%
按下载量换算64

Claude

28.96%
按下载量换算50

Cursor

20.04%
按下载量换算34

Gemini CLI

9%
按下载量换算15

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

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

来源信息

继续浏览同类 Skills