⏳ This skill is pending AI review.

Scores will appear once the review pipeline completes.

version unknown

project-context-v2

poiuyjie@poiuyjie⭐ 10 stars· last commit 2mo ago· 0 open issues

Manage evidence-first memory across the full lifecycle of long-term scientific research and research engineering. Use when initializing a research project or adopting the memory system into an existing one, resuming work across AI sessions, formulating questions and hypotheses, planning or registering experiments, recording running/completed/failed experiments, preserving raw key tables and provenance, correcting invalid analyses, promoting findings into knowledge, auditing claim support, handing off work, or diagnosing documentation drift without losing reproducibility.

Choose how to use this skill

You do not need every option. Choose the path your AI client supports. The stable page stays the same; versioned files are immutable.

1. Native installer

This listing has no registered native installer command. Use the complete package or source fallback below, depending on what your client supports.

Do not guess an installer command or replace an existing version without reviewing the diff.

2. Complete package recommended

Download the ZIP when available. It includes SKILL.md plus the references, security notes and version metadata.

No complete ProSkills package is published for this listing yet.

3. Prompt-only

Copy the prompt above when the agent can read the stable page or when you want to adopt the workflow without installing a skill.

Need only the instruction file?

Download SKILL.md only if your client requires a single file. The complete ZIP is safer for a full installation because it preserves the references and release context.

No path installs or executes anything by itself. Your agent still needs access to the project files. Before updating, compare the installed version and review the diff.

—/10

// RATINGS

⭐GitHub Stars
⭐ 10 on GitHubGitHub ↗

Growing

🟢ProSkills Score
—
📍

Not yet listed on ClawHub or SkillsMP

// README

Project Context V2

English | 简体中文

Evidence-first, long-term experiment memory for AI coding agents. Every claim stays traceable from question to evidence, every session resumable without archaeology.

Research projects rarely die because results are lost — they die because their context is: which config produced that number, why this baseline, what was invalidated, what was merely hypothesized. This skill turns an AI agent (Claude Code, ZCode, any skills-compatible agent) into a disciplined lab-notebook keeper: 10 operations, a controlled validity vocabulary, provenance gates, and read-only audits.

How it works

flowchart TB
    %%{init: {"flowchart":{"defaultRenderer":"elk"},"theme":"base","themeVariables":{"fontFamily":"Inter, ui-sans-serif, system-ui, sans-serif","fontSize":"14px","clusterBkg":"#F8FAFC","clusterBorder":"#CBD5E1","lineColor":"#94A3B8","edgeLabelBackground":"#FFFFFF"}}}%%

    init(["✦ init — adopt once"]):::seed --> startS

    subgraph loop["🔬 Per-session loop"]
        startS(["▶ start — load task-conditioned context"]):::seed
        frame["🎯 frame<br/>question · hypotheses · falsifiers"]:::op
        plan["📋 plan<br/>stable experiment ID · frozen protocol"]:::op
        record["🧾 record<br/>provenance gate · evidence before interpretation"]:::op
        endS(["🏁 End — journal handoff"]):::op
        startS --> frame --> plan --> record --> endS
        endS -. next session .-> startS
    end

    endS --> syn["📦 synthesize<br/>promote traceable observations to facts"]:::read

    subgraph guards["⚠️ Available anytime"]
        correct["🧊 correct<br/>freeze · invalidate · supersede"]:::gate
        doctor["🩺 doctor<br/>read-only structural + semantic audit"]:::gate
    end

    endS -. bug found .-> correct
    endS == close-out ==> doctor

    classDef seed fill:#EEF2FF,stroke:#6366F1,stroke-width:2px,color:#312E81;
    classDef op fill:#FFFFFF,stroke:#6366F1,stroke-width:1.5px,color:#1E1B4B;
    classDef read fill:#ECFDF5,stroke:#10B981,stroke-width:1.5px,color:#064E3B;
    classDef gate fill:#FFF7ED,stroke:#F59E0B,stroke-width:1.5px,color:#7C2D12;

How Jev audits your memory

flowchart TB
    %%{init: {"flowchart":{"defaultRenderer":"elk"},"theme":"base","themeVariables":{"fontFamily":"Inter, ui-sans-serif, system-ui, sans-serif","fontSize":"14px","clusterBkg":"#F8FAFC","clusterBorder":"#CBD5E1","lineColor":"#94A3B8","edgeLabelBackground":"#FFFFFF"}}}%%

    src["📄 Memory under audit — records · CURRENT.md · claims"]:::c1
    r1["1️⃣ doctor.py | local regex · free<br/>structural: missing sections · stale · empty provenance"]:::c2
    r2["2️⃣ jev_doctor.py | one batched Jev call<br/>provenance recoverable? · headline matches table? · observations clean? · claim support"]:::c3
    gate{"confidence gate"}
    ok(["✅ silent pass (p ≥ 0.5)"]):::okc
    warn(["⚠️ warning — high-confidence finding, confirm first"]):::warnc
    rev(["🔍 manual review — confidence < 0.5"]):::revc

    src --> r1 --> r2 --> gate
    gate --> ok & warn & rev

    classDef c1 fill:#EEF2FF,stroke:#6366F1,stroke-width:1.5px,color:#312E81;
    classDef c2 fill:#FFFFFF,stroke:#6366F1,stroke-width:1.5px,color:#1E1B4B;
    classDef c3 fill:#F5F3FF,stroke:#8B5CF6,stroke-width:1.5px,color:#4C1D95;
    classDef okc fill:#ECFDF5,stroke:#10B981,stroke-width:2px,color:#064E3B;
    classDef warnc fill:#FFF7ED,stroke:#F59E0B,stroke-width:2px,color:#7C2D12;
    classDef revc fill:#FFF1F2,stroke:#F43F5E,stroke-width:2px,color:#881337;

Why a decision model for audits? Every audit question is a small, closed-vocabulary judgment — exactly the shape a non-generative "System One" model is built for:

  • One batched call per audit — all questions across all records go out in a single request (the quickstart triage measured 425 input tokens), instead of the main model re-reading every record in full.
  • Calibrated confidence, free routing — every answer carries a probability distribution and a confidence score, so findings split automatically into silent pass / warning / manual review, with no prompt-engineering to squeeze uncertainty out of an LLM.
  • Closed vocabulary, no invented findings — answers are constrained to the schema (supported / partially-supported / unsupported / invalidated), so the pre-screen can only flag, never fabricate.
  • Consistent, loggable, tunable — the same schema runs every time: log Jev's verdicts next to your own reviews and tune thresholds per project.
  • The main model remains the judge — Jev only triages; every warning and every low-confidence item routes to your review. Without a key, the same checks run on the main model (fallback above).

Operations

OperationPurposeMutation
initInitialize the memory structure (missing files only)write
startResume: task-conditioned context load + state reportread-only
frameResearch question, hypotheses, falsifiers, confounderswrite (confirmed)
planRegister experiment: ID, frozen protocol, acceptance criteriawrite
recordEvidence + provenance gate + key tableswrite
endJournal handoff, refresh CURRENT, run doctorwrite
correctFreeze old record, scope the invalidation, link replacementwrite
synthesizePromote traceable observations into durable factswrite
claim-auditClaim–evidence matrix with support classificationread-only
doctorStructural + optional semantic health auditread-only

Install

Requires Python ≥ 3.10 for the scripts (zero third-party dependencies).

# via the skills CLI (project-level; add -g for global)
# interactive: you will be asked which of your agents to install to
npx skills add poiuyjie/jev_project_context
# non-interactive (CI, scripts): name the target agent explicitly
npx skills add poiuyjie/jev_project_context --agent claude-code -y

# or copy the folder into your agent's skills directory
git clone https://github.com/poiuyjie/jev_project_context ~/.agents/skills/project-context-v2

Then, inside your research project, tell your agent:

initialize research memory for this project

Daily use: "continue this project" (start), "record the results of E2026-0922-01" (record), "close the session" (end).

Optional Jev layers

Two scripts become active once TYPESAFE_API_KEY is configured. The simplest way is a .env file:

cp .env.example .env   # then paste your key from https://console.typesafe.ai/keys

jev_client.py loads .env from the current directory, the scripts/ directory, or the skill root — no dependencies, and real environment variables always take precedence. .env is git-ignored: never commit a real key.

With the key in place (see TypeSafe/Jev docs):

  • jev_context.py — task-conditioned context triage for start: ranks experiment records, knowledge entries, protocols, and journals against the current task in one batched decision call, and prints a LOAD / SKIP manifest under a character budget. Relevance never hides staleness: SURFACE validity warnings (invalidated/superseded evidence) are printed even for skipped items.
  • jev_doctor.py — semantic pre-screening for doctor / claim-audit / synthesize: provenance recoverability, headline-vs-table consistency, interpretation leaking into observations, and claim-support classification over the controlled vocabulary.

Both are read-only and advisory: findings are triage, never verdicts. Without a key (or on API failure) the scripts print a fallback note and exit 0 — nothing breaks, and every judgment falls back to your agent's main model: the skill's workflows instruct the agent to run the same semantic checks itself and to load context via the fixed reading order. This is a fallback, not a degradation — quality is backed by the main model (arguably stronger), only cost and latency return to the plain-LLM baseli

// HOW IT'S BUILT

// FILES

2 files shipped with this skill. Inline text is the catalog copy. The upstream link is the source repository.

  • SKILL.md7.9 KBupstream ↗
    ---
    name: project-context-v2
    description: Manage evidence-first memory across the full lifecycle of long-term scientific research and research engineering. Use when initializing a research project or adopting the memory system into an existing one, resuming work across AI sessions, formulating questions and hypotheses, planning or registering experiments, recording running/completed/failed experiments, preserving raw key tables and provenance, correcting invalid analyses, promoting findings into knowledge, auditing claim support, handing off work, or diagnosing documentation drift without losing reproducibility.
    ---
    
    # Project Context V2
    
    Maintain research memory as a traceable chain from question to evidence to claim. Preserve measurements and provenance before interpretation so a later correction can replace the analysis without destroying the record.
    
    ## Non-negotiable rules
    
    1. Treat evidence as more durable than interpretation. When space is limited, remove repetitive prose before removing key tables, sample counts, protocols, baselines, uncertainty, failure cases, or artifact paths.
    2. Never silently rewrite history. Mark a result or claim `superseded` or `invalidated`, state why, and link its replacement.
    3. Separate four epistemic classes:
       - **Evidence**: observed values and artifacts.
       - **Observation**: description directly supported by evidence.
       - **Interpretation**: causal or mechanistic explanation that may be wrong.
       - **Decision**: action chosen under stated evidence, constraints, and risk.
    4. Never convert missing, incomparable, or failed measurements into conclusions. Use `—`, `not measured`, `failed`, or `incomparable` explicitly.
    5. Keep raw or per-sample data in machine-readable artifacts when available. Preserve the decisive subset as Markdown tables so the project remains understandable if outputs are unavailable.
    6. Record negative results, bugs, leakage, protocol changes, and counterexamples with the same care as improvements.
    7. Do not claim causality from correlation, ablation-free comparisons, changed protocols, or cherry-picked samples.
    8. Read before writing. Preserve user changes and request confirmation before changing scientific ground truth when evidence is ambiguous.
    9. Treat configuration as evidence. A result without recoverable command, resolved config, code revision, data split, seed, protocol, and artifact index is not fully reproducible; mark missing fields `unknown`, never infer historical values from current defaults.
    
    ## Canonical memory model
    
    Use the following default layout. Adapt existing names instead of duplicating equivalent files.
    
    ```text
    project/
    ├── AGENTS.md or CLAUDE.md      # operational entry: environment, commands, constraints, map
    ├── CONTEXT.md                  # stable identity, terminology, research scope
    ├── CURRENT.md                  # authoritative present-state projection
    ├── EXPERIMENTS.md              # compact experiment registry and decisive tables
    └── docs/
        ├── architecture.md         # system/research pipeline overview
        ├── protocols/              # datasets, splits, metrics, evaluation versions
        ├── research/
        │   ├── questions.md        # research questions and success criteria
        │   ├── hypotheses.md       # hypotheses and falsification conditions
        │   └── claims.md           # claims mapped to evidence and threats
        ├── knowledge/
        │   ├── facts.md            # durable observations with evidence links
        │   ├── bugs.md             # validity-impacting and implementation bugs
        │   ├── decisions.md        # ADRs and research decisions
        │   └── patterns.md         # reproducible implementation/analysis patterns
        ├── experiments/            # one evidence record per stable experiment ID
        ├── journal/                # chronological session narrative and handoffs
        └── archive/                # optional retired snapshots; never the current truth
    ```
    
    `CURRENT.md` is a projection, not a second history. Keep only the current question, authoritative protocol, selected models/results, running work, blockers, next actions, and invalidated warnings needed to resume safely.
    
    Read [references/schemas.md](references/schemas.md) before creating or materially changing these files. Read [references/lifecycle.md](references/lifecycle.md) when planning, recording, correcting, synthesizing, or writing research.
    
    ## Select an operation
    
    Map the request to one operation. Combine operations only when the user asks for an end-to-end action.
    
    | Request | Operation | Default mutation |
    |---|---|---|
    | initialize research memory | `init` | create missing files only |
    | load context / continue work | `start` | read-only |
    | formulate question or hypothesis | `frame` | update research records with confirmation |
    | plan/register an experiment | `plan` | create proposed experiment record |
    | record progress or results | `record` | append evidence; update status |
    | close session / handoff | `end` | write journal and refresh CURRENT |
    | correct a bugged result or conclusion | `correct` | preserve old record; link replacement |
    | synthesize stable knowledge | `synthesize` | promote evidence-backed observations |
    | audit claim support | `claim-audit` | read-only unless asked to update |
    | check memory/document health | `doctor` | read-only |
    
    ## Operation workflows
    
    ### `init`
    
    1. Inspect existing files and project conventions.
    2. Ask only for missing high-impact information: research objective, unit of analysis, datasets, primary metrics, acceptance criteria, compute constraints, and target outputs.
    3. Create only missing structure. Never overwrite populated files.
    4. Seed `CURRENT.md` with unknowns explicitly marked, not invented.
    5. Establish a versioned evaluation protocol before recording headline metrics.
    
    ### `start`
    
    If `TYPESAFE_API_KEY` is set, first run `python3 scripts/jev_context.py <project-root> --task "<the user's request>"` and use its manifest: read `LOAD` items in full, treat `SKIP` items as pointers for on-demand lookup only, and relay every `SURFACE` validity line to the user even when the item was skipped (see *Optional Jev layers*). Then read, in this order:
    
    1. Operational entry file (`AGENTS.md` or `CLAUDE.md`).
    2. `CURRENT.md` if present. Treat it as a navigation aid, then verify its headline values against evidence records.
    3. Active evaluation protocol and current experiment records.
    4. Relevant key tables in `EXPERIMENTS.md`; do not replace them with prose summaries.
    5. Latest handoff/open questions.
    6. Relevant facts, bugs, decisions, hypotheses, and claims on demand.
    
    Report:
    
    - authoritative current state and its evidence paths;
    - active/running work and exact resume command when known;
    - unresolved validity threats or conflicting records;
    - next actions, distinguishing already-decided work from optional suggestions.
    
    Do not present historical interpretation as current fact merely because it appears in a recent journal.
    
    ### `frame`
    
    1. State the research question, unit of analysis, scope, and success criteria.
    2. Register hypotheses with mechanism, predictions, alternatives, falsifiers, and required evidence.
    3. Identify confounders, leakage risks, and measurement limitations before experiments.
    4. Distinguish exploratory from confirmatory work.
    5. Avoid committing to a method before specifying what observation would disprove it.
    
    ### `plan`
    
    1. Assign a stable experiment ID such as `E2026-0710-01`.
    2. Record status `proposed` or `ready`, research question, hypothesis IDs, baseline, controlled variables, changed variables, dataset/split, seeds, primary/secondary metrics, acceptance and falsification criteria, artifacts, compute estimate, and stop conditions.
    3. Freeze or version the evaluation protocol. If it changes later, results are not directly comparable without an explicit bridge.
    4. Include sanity checks and failure diagnostics.
    5. Prevent result-aware acceptance criteria.
    
    ### `record`
    
    Scaffold new records with `pyth
  • README.mdupstream ↗

    Contents are not inlined in the catalog. Open the upstream file.

Plain-text copy, no login: /skill-bundles/poiuyjie-jev-project-context.md

// REPO STATS

10 stars
0 open issues
Last commit: 2mo ago