ivegamsft/basecoat/operation-context-resolver

Claude Code and agent skill by ivegamsft/basecoat

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Resolve deterministic environment context for branch, label, and incident driven workflows using environment-map.yml, returning target environment, operation mode, and action permissions. USE FOR: resolving preview/dev/staging/prod target before troubleshooting or deployment, enforcing allowed and blocked action checks, applying incident-readonly routing, validating human approval requirements for risky actions. DO NOT USE FOR: direct infrastructure mutation without policy checks, replacing platform branch protection controls, or bypassing environment-map validation.

Install

npx vskill@latest install ivegamsft/basecoat/operation-context-resolver

SKILL.md

The same SKILL.md was published earlier as ivegamsft/basecoat/operation-context-resolver.

Operation Context Resolver

Routes a request to the correct environment and mode, then returns allowed and blocked actions.

Inputs

  • github_ref, github_event_payload, pr_labels
  • user_intent for incident keyword routing
  • workflow_dispatch_input.environment for explicit override

Output

OperationContext includes (and can be emitted as operation-context.json from the CLI):

  • target_environment, mode, risk_level
  • allowed_actions, blocked_actions
  • human_approval_required, incident_mode

Behavior order

  1. Explicit workflow override
  2. Incident keyword override
  3. Environment labels
  4. YAML rules from environment-map.yml
  5. Branch pattern matching
  6. Safe default (dev, read_only)

Usage

typescript
import fs from 'fs';
import { resolveOperationContext } from '@basecoat/operation-context-resolver';
const githubEventPayload = process.env.GITHUB_EVENT_PATH
? fs.readFileSync(process.env.GITHUB_EVENT_PATH, 'utf-8')
: undefined;
const context = await resolveOperationContext({
github_ref: process.env.GITHUB_REF,
github_event_name: process.env.GITHUB_EVENT_NAME,
github_event_payload: githubEventPayload,
user_intent: "troubleshoot login timeout",
pr_labels: ["env:staging"],
});
const isActionAllowed =
context.allowed_actions.includes("read_logs") &&
!context.blocked_actions.includes("read_logs");

Artifacts

  • Template: templates/environment-map.yml
  • Guide: README.md
  • Types: src/types.ts

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
4
Repository forks
1
7-day trend score
13

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/ivegamsft/basecoat/operation-context-resolver/badge)](https://verified-skill.com/skills/ivegamsft/basecoat/operation-context-resolver)

Something wrong with this skill or its page? Tell us.