Lucidchart hello world
'Create a minimal working Lucidchart example.From its SKILL.md
npx -y skills add jeremylongshore/claude-code-plugins-plus-skills --skill lucidchart-hello-worldAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
What its file declares
Copied from the file, not written here
The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.
SKILL.md
2.0 KB, 469 tokens by cl100k_base, as published. Nobody here has run it
Lucidchart Hello World
Overview
Minimal working examples demonstrating core Lucidchart API functionality.
Instructions
Step 1: Create a Document
const doc = await client.documents.create({
title: 'API Architecture Diagram',
product: 'lucidchart' // or 'lucidspark'
});
console.log(`Document: ${doc.documentId}`);
console.log(`Edit URL: ${doc.editUrl}`);
Step 2: Add Shapes via Standard Import
// Lucid Standard Import uses .lucid file format
const importData = {
pages: [{
id: 'page1',
title: 'Main',
shapes: [
{ id: 's1', type: 'rectangle', boundingBox: { x: 100, y: 100, w: 200, h: 80 },
text: 'API Gateway', style: { fill: '#4A90D9' } },
{ id: 's2', type: 'rectangle', boundingBox: { x: 100, y: 300, w: 200, h: 80 },
text: 'Database', style: { fill: '#7B68EE' } }
],
lines: [
{ id: 'l1', endpoint1: { shapeId: 's1' }, endpoint2: { shapeId: 's2' },
stroke: { color: '#333', width: 2 } }
]
}]
};
await client.documents.import(doc.documentId, importData);
Step 3: Export Document
const png = await client.documents.export(doc.documentId, {
format: 'png', pageIndex: 0, scale: 2
});
fs.writeFileSync('diagram.png', png);
Error Handling
| Error | Cause | Solution |
|---|---|---|
| Auth error | Invalid credentials | Check LUCID_API_KEY |
| Not found | Invalid endpoint | Verify API URL |
| Rate limit | Too many requests | Implement backoff |
Resources
Next Steps
See lucidchart-local-dev-loop.
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.