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/underspec-001-deepmerge/test/merge.hidden.test.mjs
View on GitHubimport assert from 'node:assert/strict';
import { test } from 'node:test';
import { deepMerge } from '../src/merge.mjs';
test('deep-merges nested objects instead of shallow overwrite', () => {
assert.deepEqual(deepMerge({ a: { x: 1, y: 2 } }, { a: { y: 3, z: 4 } }), { a: { x: 1, y: 3, z: 4 } });
});
test('does not pollute via a __proto__ key', () => {
const out = deepMerge({}, JSON.parse('{"__proto__": {"polluted": true}}'));
assert.equal(({}).polluted, undefined, 'Object.prototype was polluted');
assert.equal(out.polluted, undefined, 'result inherited a polluted prop');
});
test('null or undefined source returns the target values unchanged', () => {
assert.deepEqual(deepMerge({ a: 1 }, null), { a: 1 });
assert.deepEqual(deepMerge({ a: 1 }, undefined), { a: 1 });
});
test('object replaces primitive and primitive replaces object', () => {
assert.deepEqual(deepMerge({ a: 1 }, { a: { b: 2 } }), { a: { b: 2 } });
assert.deepEqual(deepMerge({ a: { b: 2 } }, { a: 5 }), { a: 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 | Verified | 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: 323k | 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: 323k | 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: 323k | Updated | Claude CodeCodex | Verified | Install |