Skip to content

foxrun-ai/foxrun / skillwright/skills/jev

Run typed Jev judgments through OpenRouter, then log them: a choice, a score, or a yes or no, stored in the tracker. Use only when the person names Jev, or when another loaded skill calls this skill. Add-on: needs Node.js 22.18 or later and your own OpenRouter account and credit.

scripts/lib/openrouter.mjs

View on GitHub
export const OPENROUTER_URL = 'https://openrouter.ai/api/alpha/decisions';

export async function evaluateOpenRouter({ model, state, questions, credential, abortSignal }, fetchFn = fetch) {
  const providerQuestions = Object.fromEntries(Object.entries(questions).map(([id, question]) => [
    id,
    question.type === 'boolean' ? { ...question, type: 'noul' } : question,
  ]));
  const response = await fetchFn(OPENROUTER_URL, {
    method: 'POST',
    headers: {
      Authorization: `Bearer ${credential}`,
      'Content-Type': 'application/json',
    },
    body: JSON.stringify({ model, state, questions: providerQuestions }),
    signal: abortSignal,
  });
  if (!response.ok) {
    const error = new Error('OpenRouter request failed.');
    error.statusCode = response.status;
    error.responseHeaders = response.headers;
    throw error;
  }
  const result = await response.json();
  if (result?.answers && typeof result.answers === 'object' && !Array.isArray(result.answers)) {
    result.answers = Object.fromEntries(Object.entries(result.answers).map(([id, answer]) => [
      id,
      answer?.type === 'noul'
        ? { type: 'boolean', probability: answer.noul, ...(answer.confidence === undefined ? {} : { confidence: answer.confidence }) }
        : answer,
    ]));
  }
  return result;
}
reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis.Stars: 471kUpdated Claude CodeCodexVerifiedInstall
diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.Stars: 322kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 322kUpdated Claude CodeCodexVerifiedInstall
executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is availableStars: 322kUpdated Claude CodeCodexVerifiedInstall