スキル一覧に戻る
DazedtilDawn

edge-context

by DazedtilDawn

Mechanical enforcement system for Claude Code - YAML state tracking, hook-based enforcement, Three Gears autopilot

0🍴 0📅 2026年1月21日
GitHubで見るManusで実行

SKILL.md


name: edge-context description: Load project state and workflow context before starting any coding task. Use automatically when beginning work, implementing features, fixing bugs, or continuing a project.

Load Project Context

This skill loads the current project state from active_context.yaml and provides orientation for the upcoming work.

When This Skill Activates

This skill should trigger implicitly when:

  • Starting work on a new task
  • Beginning a coding session
  • Resuming work on a project
  • The user says "let's work on...", "implement...", "fix...", "continue..."

Instructions

0. Bootstrap State File (if missing)

FIRST, check if active_context.yaml exists in the project root.

If it does NOT exist, create it with this template:

# Operator's Edge - Active Context
# This file tracks your workflow state

objective: null
current_step: 0
plan: []
constraints: []
memory: []

Then inform the user:

Created active_context.yaml - Operator's Edge is now initialized.
Run $edge-plan to create your first plan.

1. Read Current State

Load active_context.yaml from the project root and extract:

  • objective: Current goal
  • current_step: Which step to work on
  • plan: List of steps and their status
  • constraints: Things that must NOT happen
  • memory: Relevant lessons from past work

2. Check Workflow Status

Determine the current state:

ConditionStatusAction
No objective or empty planNeeds PlanningSuggest $edge-plan
Has plan, step in_progressResume WorkContinue current step
Has plan, all pendingReady to StartSuggest $edge-step
Has plan, all completedWork CompleteSuggest review or new objective

3. Surface Relevant Memory

Scan the memory section for lessons whose triggers match the current task keywords.

For each matching lesson, display:

RELEVANT LESSON: [trigger]
  [lesson text]
  (reinforced N times)

4. Display Context Summary

Output a summary like:

OPERATOR'S EDGE - Context Loaded

Objective: [objective text]
Progress: [N/M] steps completed
Current: Step [N] - [description]

Status: [READY | IN_PROGRESS | NEEDS_PLAN | COMPLETE]

Constraints:
  - [constraint 1]
  - [constraint 2]

Relevant Lessons:
  - [lesson 1]
  - [lesson 2]

Next Action: [suggested skill to run]

5. Three Gears Mode

Determine the current "gear" based on state:

GearConditionBehavior
ACTIVEHas objective + plan with pending/in_progress stepsExecute work
PATROLObjective complete OR no steps in progressReview, validate, suggest
DREAMNo objective, empty planExplore, brainstorm, propose

Display the current gear:

Current Gear: [ACTIVE | PATROL | DREAM]

Output Format

========================================
OPERATOR'S EDGE - Codex CLI Edition
========================================

Gear: [ACTIVE | PATROL | DREAM]

Objective: [objective or "Not set"]
Progress: [N/M steps] | Current: Step [N]

Status: [description of current state]

Constraints:
  - [list constraints]

Memory (relevant to this task):
  - [matching lessons]

Suggested Action: $[skill-name]
========================================

Why This Matters

Without automatic hooks, this skill provides the "session start" context that Claude Code injects automatically. Running this skill:

  1. Orients you to the current work
  2. Surfaces relevant lessons
  3. Prevents starting work without a plan
  4. Maintains workflow discipline

Tip

If Codex doesn't invoke this skill automatically, explicitly run $edge-context at the start of each session to load state.

スコア

総合スコア

50/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

+10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です