nanocoai/nanoclaw / .claude/skills/add-iron-proxy
add-iron-proxy
FlaggedInstall or refresh Iron Proxy and its official Iron Control web console for NanoClaw. Use when selecting the Iron gateway, adding its management UI, configuring credentials and grants, or restoring the proxy, approval bridge, and agent guidance.
scripts/detect.test.ts
View on GitHubimport fs from 'node:fs';
import os from 'node:os';
import path from 'node:path';
import { afterEach, describe, expect, it, vi } from 'vitest';
import { detectInstalledIronProxy } from './detect.js';
import {
centralHostGatewayArgs,
centralInstallLabel,
} from './setup.js';
const roots: string[] = [];
afterEach(() => {
for (const root of roots.splice(0)) fs.rmSync(root, { recursive: true, force: true });
});
describe('Iron Proxy installation detection', () => {
it("requires this install's configured central container to be running", () => {
const root = fs.mkdtempSync(path.join(os.tmpdir(), 'iron-detect-'));
roots.push(root);
const inspect = vi.fn(() => true);
expect(detectInstalledIronProxy(root, inspect)).toBe(false);
expect(inspect).not.toHaveBeenCalled();
fs.writeFileSync(path.join(root, '.env'), 'NANOCLAW_IRON_PROXY_CONTAINER=nanoclaw-iron-proxy-test\n');
expect(detectInstalledIronProxy(root, inspect)).toBe(true);
expect(inspect).toHaveBeenCalledWith('nanoclaw-iron-proxy-test');
inspect.mockReturnValue(false);
expect(detectInstalledIronProxy(root, inspect)).toBe(false);
});
it('lets the central proxy reach local model endpoints on Linux', () => {
expect(centralHostGatewayArgs('linux')).toEqual(['--add-host', 'host.docker.internal:host-gateway']);
expect(centralHostGatewayArgs('darwin')).toEqual([]);
});
it('uses the generic install label so uninstall removes the central container', () => {
expect(centralInstallLabel('/tmp/nanoclaw-install')).toMatch(/^nanoclaw-install=[0-9a-f]{8}$/);
});
});
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation). | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK). | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |