Proc session continuity
Skill barcelosvinicius/basic-engineering/plugins/be/skills/proc-session-continuity
Use at the start and end of every work session (human or AI-assisted). At start: read docs/HISTORY.md, docs/structural-analysis.md, and git status before touching code. At end: update those docs and commit them with the code. Mandatory continuity protocol that prevents rework and context drift.From its SKILL.md
npx -y skills add barcelosvinicius/basic-engineering --skill proc-session-continuityAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
5.1 KB, ~1.2k tokens by cl100k_base, as published. Nobody here has run it
Skill: Session Continuity
Defines the mandatory continuity protocol between work sessions. Every agent starting a development session must follow this flow to avoid rework, preserve context, and keep documentation synchronized with the code.
Reference: engineering-principles.md §A.3 (Session Briefs), §A.5 (Expected
AI Behavior), and §Appendix C (Context as Graph — Depth and Breadth).
Context loading strategy
Loading context is a graph traversal problem. Choose the strategy based on what the session needs to accomplish:
- Depth-first (default — implementation sessions): AI context file →
.specify/tasks/[current-task].md→.specify/specs/[feature].md. Token cost ~200–500 lines. Use for any session with a defined task. If the project does not use SDD, replace the task file with the HISTORY.md + structural-analysis.md load below. - Breadth-first (planning and cross-cutting sessions): AI context file →
docs/INDEX.md→docs/structural-analysis.md→docs/HISTORY.md. Token cost ~400–800 lines. Use when starting a new feature, writing a spec, or diagnosing a cross-cutting bug.
Mandatory flow — Session start
Without SDD (.specify/ not in use)
- Read
docs/HISTORY.md— Current State (in progress), Blockers, Next Steps. - Read
docs/structural-analysis.md— Technical Pending Items (what NOT to redo), Applied Fixes (what is ALREADY resolved). - Check
git status— uncommitted modified files: continue or discard. - Consult
docs/lessons-learned.mdif relevant — past errors, patterns to avoid.
With SDD (.specify/ in use — depth-first)
- Read
.specify/tasks/[current-task].md— scope, verification, dependencies. - Read
.specify/specs/[feature].mdif needed — EARS-syntax constraints. - Check
git status. - Read
docs/HISTORY.mdonly if task context is insufficient.
Estimated cost: ~400 lines of critical context without SDD (vs ~8,000+ reading everything); ~200–500 lines with SDD depth-first.
Session goal (mandatory)
Before starting any implementation, declare a verifiable goal:
"At the end of this session, I will know I am done when: [criterion]"
- Valid: "the
POST /api/v1/[resource]endpoint returns 200 and passes the integration tests"; "bug #N is reproduced by a test and the test passes after the fix". - Not valid: "improve", "adjust", "refactor" without a measurable criterion.
- The goal does not replace any step in the flow — it only guides execution.
Mandatory flow — Session end
Without SDD
- Update
docs/structural-analysis.md— mark resolved items ✅ with date, add new fixes to Applied Fixes, record newly discovered pending items. - Update
docs/HISTORY.md— refresh "Current State"; add a "Delivery History" entry (### [YYYY-MM-DD] Titlewith Owner, Deliveries, Decisions, Next steps, Blockers); update "Next Steps". - Record in
docs/lessons-learned.mdif applicable — only discoveries that prevent future rework (Context / Problem / Rule / Reference format). - Commit with Conventional Commits — docs in the same commit as the code.
With SDD
- Mark the task ✅ with date in
.specify/tasks/[task].md(or record blocker). - Update
docs/HISTORY.md— Current State, next task ID, Delivery History. - Record lessons learned if applicable.
- Commit task file + code + HISTORY.md together.
Session goal validation
Before ending, answer explicitly: was the declared goal achieved? ✅ / ❌
If ❌: what prevented it, and what must be made explicit for the next session?
Reflect the answer in docs/HISTORY.md and docs/structural-analysis.md.
Golden rule
Every session that changes functional code MUST update
structural-analysis.mdand/orHISTORY.mdin the same commit. Documentation must never be more than 1 commit behind the code.
Two memories — keep the boundary clean
be and the AI harness each persist state; do not blur them:
beliving docs (docs/) = the project's state and decisions — what was built, what's pending, what was decided and why. Versioned with the code, shared by the whole team. This is the source of truth a session loads.- The harness's own memory (e.g. Claude Code's
CLAUDE.md+ memory files) = how to work here — the user's preferences, recurring feedback, tool and workflow conventions. Personal/assistant-scoped, not project history.
Rule of thumb: a fact another developer needs → docs/; a preference about how
the AI should work → harness memory. Session start reads both; never record
a project decision only in harness memory — it would vanish for the team.
See also
- resources.md — reference tables of available agents, skills, and key documents (load on demand).
What ships with it: 1 file
3.4 KB alongside SKILL.md
- resources.md3.4 KB