Skip to content

lidge-jun/codexclaw / plugins/codexclaw/skills/dev-visualizer

cxc-dev-visualizer

Unverified

Use for visual explanations and documents. Triggers: diagrams, charts, interactive models, HTML reports, infographics, 시각화, 그려줘, 문서 만들어줘, 보고서, PDF 생성.

FileKindSize
SKILL.mdskill md3.7 KB
agents/openai.yamlconfig179 B
assets/editorial-report.htmlother17.4 KB
assets/exhibit-recipes.jsonconfig26.7 KB
assets/paged-report.htmlother24.5 KB
assets/report-examples/decision-en.jsonconfig5.2 KB
assets/report-examples/decision-ko.jsonconfig5.0 KB
assets/report-examples/reference-en.jsonconfig4.8 KB
assets/report-examples/reference-ko.jsonconfig4.8 KB
assets/report-examples/research-en.jsonconfig4.2 KB
assets/report-examples/research-ko.jsonconfig4.1 KB
assets/report-model.example.jsonconfig1.6 KB
assets/research-handoff.example.jsonconfig1.6 KB
reference/artifact-composition.mdmarkdown4.8 KB
reference/authoring-routes.mdmarkdown3.5 KB
reference/computed-verification.mdmarkdown2.7 KB
reference/delivery-and-provenance.mdmarkdown762 B
reference/document-pdf.mdmarkdown17.3 KB
reference/english-authoring.mdmarkdown3.6 KB
reference/environment-detection.mdmarkdown3.3 KB
reference/exhibit-recipes.mdmarkdown12.8 KB
reference/html-templates.mdmarkdown18.0 KB
reference/page-role-catalog.mdmarkdown2.5 KB
reference/port-maintenance.mdmarkdown3.0 KB
reference/print-provenance.mdmarkdown2.9 KB
reference/reader-documents.mdmarkdown3.9 KB
reference/report-pipeline.mdmarkdown12.7 KB
reference/report-writing.mdmarkdown15.2 KB
reference/scope-and-maintenance.mdmarkdown957 B
reference/source-patterns.mdmarkdown10.3 KB
reference/svg-and-interaction.mdmarkdown9.3 KB
reference/visual-design.mdmarkdown11.3 KB
reference/visualize-contract.mdmarkdown1.1 KB
scripts/diagram-to-html.shexecutablescript8.2 KB
scripts/exhibit-contract.mjsscript24.9 KB
scripts/export-paged-report.mjsexecutablescript40.4 KB
scripts/quality-gate.mjsscript5.0 KB
scripts/report-contract.mjsscript18.1 KB
scripts/report-intake.mjsscript2.8 KB
scripts/report-locale.mjsscript27.0 KB
scripts/research-adapter.mjsscript8.7 KB
upstream/sync-check.shexecutablescript3.6 KB
upstream/visualize-upstream.mdmarkdown1.0 KB

scripts/quality-gate.mjs

View on GitHub
#!/usr/bin/env node
/** Final-PDF receipt gate. Hashes bind versions, not truth; producers must be trusted.
 * Exit 0 PASS, 1 FAIL, 2 REVIEW, 3 BLOCKED. Never manufactures review evidence. */
import {readFileSync} from 'node:fs';
import {resolve} from 'node:path';
import {createHash} from 'node:crypto';
import {pathToFileURL} from 'node:url';
export const REQUIRED=Object.freeze(['pdf-parse','text-integrity','font-and-glyphs','pagination','visual-pages','claim-evidence','editorial-review']);
/** Assurance profiles. The seven-check receipt certifies a published artifact; reading
 * rendered pages costs real time and tokens, and a draft does not earn that cost. The
 * profile is a CHOICE the caller states, never a discovery: an unnamed profile stays
 * 'publication', and a check the profile does not require is reported as omitted rather
 * than silently counted as a pass. A PASS is only ever a pass AT ITS PROFILE. */
export const PROFILES=Object.freeze({
  draft:Object.freeze([]),
  standard:Object.freeze(['pdf-parse','text-integrity','pagination']),
  publication:REQUIRED,
});
export const DEFAULT_PROFILE='publication';
const STATES=new Set(['PASS','FAIL','REVIEW','NOT_RUN','BLOCKED']), HASH=/^[a-f0-9]{64}$/i;
const object=v=>v!==null&&typeof v==='object'&&!Array.isArray(v);
const nonempty=v=>typeof v==='string'&&v.trim().length>0;
export function evaluateReport(input, {profile}={}) {
  const findings=[], add=(level,id,message)=>findings.push({level,id,message});
  if(!object(input)||(!nonempty(input.artifact_sha256)||!HASH.test(input.artifact_sha256))||!Array.isArray(input.checks))
    return {verdict:'FAIL',profile:null,omitted:[],exitCode:1,findings:[{level:'FAIL',id:'input',message:'Expected artifact_sha256 and checks array.'}]};
  const selected=profile??input.profile??DEFAULT_PROFILE;
  if(!Object.prototype.hasOwnProperty.call(PROFILES,selected))
    return {verdict:'FAIL',profile:null,omitted:[],exitCode:1,findings:[{level:'FAIL',id:'profile',message:'Unknown assurance profile: '+String(selected)+'. Choose '+Object.keys(PROFILES).join(', ')+'.'}]};
  const required=PROFILES[selected];
  if(input.notRun!==undefined) {
    if(!Array.isArray(input.notRun)) add('FAIL','legacy-notRun','notRun must be an array.');
    else if(input.notRun.length) add('BLOCKED','legacy-notRun','Unresolved legacy NOT RUN findings.');
  }
  const seen=new Map();
  for(const check of input.checks) {
    if(!object(check)||!nonempty(check.id)||!STATES.has(check.status)) {add('FAIL','schema','Each check needs a non-empty id and recognized status.');continue;}
    if(seen.has(check.id)) {add('FAIL',check.id,'Duplicate check IDs are ambiguous.');continue;}
    seen.set(check.id,check);
    if(check.status==='PASS') {
      if(!nonempty(check.artifact_sha256)||check.artifact_sha256.toLowerCase()!==input.artifact_sha256.toLowerCase()) add('FAIL',check.id,'PASS receipt is not bound to this final artifact.');
      if(!nonempty(check.evidence)||/^(?:-|none|n\/a|not run)$/i.test(check.evidence.trim())) add('BLOCKED',check.id,'PASS needs an evidence locator from the check producer.');
    }
    if(check.status==='FAIL') add('FAIL',check.id,'A check reported a defect.');
    else if(check.status==='REVIEW') add('REVIEW',check.id,'A review finding remains unresolved.');
  }
  for(const id of required) {
    const check=seen.get(id);
    if(!check) add('BLOCKED',id,'Required check is absent.');
    else if(check.status==='NOT_RUN'||check.status==='BLOCKED') add('BLOCKED',id,'Required check has not completed.');
  }
  // Everything the publication receipt would have covered but this profile did not: absent,
  // or present without completing. Named so a lighter verdict cannot be read as the full one.
  const omitted=REQUIRED.filter(id=>!required.includes(id)&&seen.get(id)?.status!=='PASS');
  const verdict=findings.some(f=>f.level==='FAIL')?'FAIL':findings.some(f=>f.level==='BLOCKED')?'BLOCKED':findings.some(f=>f.level==='REVIEW')?'REVIEW':'PASS';
  return {verdict,profile:selected,omitted,exitCode:{PASS:0,FAIL:1,REVIEW:2,BLOCKED:3}[verdict],findings};
}
if(process.argv[1]&&import.meta.url===pathToFileURL(resolve(process.argv[1])).href) {
  try {
    const args=process.argv.slice(2), flag=args.indexOf('--profile');
    let profile;
    if(flag!==-1) {profile=args[flag+1];if(!nonempty(profile)) throw new Error('--profile needs a value: '+Object.keys(PROFILES).join(', '));args.splice(flag,2);}
    if(args.length!==2) throw new Error('usage: node quality-gate.mjs <final.pdf> <qa.json> [--profile '+Object.keys(PROFILES).join('|')+']');
    const pdf=readFileSync(args[0]);
    if(pdf.subarray(0,5).toString()!=='%PDF-') throw new Error('not a PDF');
    const input=JSON.parse(readFileSync(args[1],'utf8'));
    if(typeof input?.artifact_sha256!=='string'||input.artifact_sha256.toLowerCase()!==createHash('sha256').update(pdf).digest('hex')) throw new Error('receipt does not match actual PDF bytes');
    const result=evaluateReport(input,{profile});console.log(JSON.stringify(result,null,2));process.exitCode=result.exitCode;
  } catch(error) {console.error(error.message);process.exitCode=1;}
}
canvas-designanthropics/skillsCreate beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations.Stars: 196kUpdated Claude CodeCodexVerifiedInstall
docxanthropics/skillsUse this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include: any mention of 'Word doc', 'word document', '.docx', '.dotx', or requests to produce professional documents with formatting like tables of contents, headings, page numbers, or letterheads. Also use when extracting or reorganizing content from .docx or .dotx files, inserting or replacing images in documents, performing find-and-replace in Word files, working with tracked changes or comments, or converting content into a polished Word document. If the user asks for a 'report', 'memo', 'letter', 'template', or similar deliverable as a Word or .docx file, use this skill. Do NOT use for PDFs, spreadsheets, Google Docs, or general coding tasks unrelated to document generation.Stars: 196kUpdated Claude CodeCodexVerifiedInstall
pdfanthropics/skillsUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple PDFs into one, splitting PDFs apart, rotating pages, adding watermarks, creating new PDFs, filling PDF forms, encrypting/decrypting PDFs, extracting images, and OCR on scanned PDFs to make them searchable. If the user mentions a .pdf file or asks to produce one, use this skill.Stars: 196kUpdated Claude CodeCodexVerifiedInstall
pptxanthropics/skillsUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx or .potx file (even if the extracted content will be used elsewhere, like in an email or summary); editing, modifying, or updating existing presentations; combining or splitting slide files; working with templates (.potx), layouts, speaker notes, or comments. Trigger whenever the user mentions "deck," "slides," "presentation," or references a .pptx or .potx filename, regardless of what they plan to do with the content afterward. If a .pptx or .potx file needs to be opened, created, or touched, use this skill.Stars: 196kUpdated Claude CodeCodexVerifiedInstall