cskwork/supergoal-skill / skills/supergoal
supergoal
UnverifiedRoute objective-driven development, verification, planning, "teach/explain", codebase learning, and skill evaluation through the Supergoal workflow. Use when Supergoal is requested or an autonomous delivery workflow is needed.
templates/harness-eval-cases/fixtures/revfactory-case-003-refactoring/test/order.visible.test.mjs
View on GitHubimport assert from 'node:assert/strict';
import { test } from 'node:test';
import { calculateInvoice } from '../src/order.mjs';
test('basic US order with no coupon', () => {
assert.deepEqual(calculateInvoice({ items: [{ price: 10, qty: 2 }, { price: 5, qty: 1 }], region: 'US' }),
{ subtotal: 25, discount: 0, tax: 1.75, shipping: 7.5, total: 34.25 });
});
test('SAVE10 coupon applies 10%', () => {
assert.deepEqual(calculateInvoice({ items: [{ price: 100, qty: 1 }], region: 'US', coupon: 'SAVE10' }),
{ subtotal: 100, discount: 10, tax: 6.3, shipping: 3, total: 99.3 });
});
test('HALF coupon for VIP applies 50%', () => {
assert.deepEqual(calculateInvoice({ items: [{ price: 200, qty: 1 }], region: 'EU', coupon: 'HALF', vip: true }),
{ subtotal: 200, discount: 100, tax: 20, shipping: 0, total: 120 });
});
test('EU tax rate is 20%', () => {
assert.deepEqual(calculateInvoice({ items: [{ price: 40, qty: 1 }], region: 'EU' }),
{ subtotal: 40, discount: 0, tax: 8, shipping: 7.5, total: 55.5 });
});
test('empty order still charges base shipping', () => {
assert.deepEqual(calculateInvoice({ items: [], region: 'US' }),
{ subtotal: 0, discount: 0, tax: 0, shipping: 7.5, total: 7.5 });
});
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| 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: 472k | Updated | Claude CodeCodex | Unverified | Install |
| 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: 322k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| 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 available | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |