Turn any idea, plan, or codebase into a beautiful interactive diagram. An agent skill for Claude Code, Codex, and more.
HTML agent-skillsai-agentsarchitecture-diagramclaude-codeclaude-skillscodexcoding-agentsdeepseek-harnessdeveloper-toolsdiagramsdiagrams-as-codedsh-pluginflowchartllmmermaidopencodesequence-diagramsoftware-architecturesystem-designvisualization
import { createRequire } from 'node:module';
import { dirname, join } from 'node:path';
export const name = 'archify-dsh';
export const PACKAGE_NAME = '@tt-a1i/archify-dsh';
export function resolveArchifySkillRoot(profileBaseUrl) {
if (!profileBaseUrl) {
throw new Error('archify-dsh: missing DSH profile baseUrl for package resolution');
}
let manifestPath;
try {
manifestPath = createRequire(profileBaseUrl).resolve(`${PACKAGE_NAME}/package.json`);
} catch (error) {
throw new Error(
`archify-dsh: cannot resolve ${PACKAGE_NAME}/package.json from the DSH profile`,
{ cause: error },
);
}
return join(dirname(manifestPath), 'skills');
}