xiaohongshu
xiaohongshu
glif-integration-expert
Integrate Glif into apps, Discord bots, and web projects. Use when building Glif-powered features.
Full skill instructions
Embed Glif AI workflows into applications and services.
Node.js/TypeScript:
async function runGlif(glifId: string, inputs: string[]) {
const res = await fetch('https://simple-api.glif.app', {
method: 'POST',
headers: {
'Authorization': `Bearer ${process.env.GLIF_API_TOKEN}`,
'Content-Type': 'application/json'
},
body: JSON.stringify({ id: glifId, inputs })
});
const data = await res.json();
if (data.error) throw new Error(data.error);
return data.output;
}
Python:
import requests
def run_glif(glif_id: str, inputs: list[str]) -> str:
res = requests.post(
'https://simple-api.glif.app',
headers={'Authorization': f'Bearer {GLIF_API_TOKEN}'},
json={'id': glif_id, 'inputs': inputs}
)
data = res.json()
if 'error' in data:
raise Exception(data['error'])
return data['output']
export default {
async fetch(request, env) {
const { glifId, inputs } = await request.json();
const res = await fetch('https://simple-api.glif.app', {
method: 'POST',
headers: {
'Authorization': `Bearer ${env.GLIF_API_TOKEN}`,
'Content-Type': 'application/json'
},
body: JSON.stringify({ id: glifId, inputs })
});
return new Response(await res.text(), {
headers: { 'Access-Control-Allow-Origin': '*' }
});
}
};
// app/api/glif/route.ts
export async function POST(request: Request) {
const { glifId, inputs } = await request.json();
const res = await fetch('https://simple-api.glif.app', {
method: 'POST',
headers: {
'Authorization': `Bearer ${process.env.GLIF_API_TOKEN}`,
'Content-Type': 'application/json'
},
body: JSON.stringify({ id: glifId, inputs })
});
return Response.json(await res.json());
}
client.on('messageCreate', async (message) => {
if (message.content.startsWith('!generate ')) {
const prompt = message.content.slice(10);
await message.reply('Generating...');
const result = await runGlif('YOUR_GLIF_ID', [prompt]);
await message.reply(result); // Image URL or text
}
});
<iframe
src="https://glif.app/glifs/GLIF_ID/embed"
width="400"
height="600"
frameborder="0">
</iframe>
Use Glif's embed SDK for custom styling and callbacks.
HTTP Request Node:
https://simple-api.glif.appAuthorization: Bearer {{$credentials.glifApi.token}}{"id": "GLIF_ID", "inputs": ["{{$json.prompt}}"]}const data = await res.json();
if (data.error) {
// Glif-level error (bad inputs, model failure)
console.error('Glif error:', data.error);
}
if (data.price === 0 && !data.output) {
// Likely auth or quota issue
console.error('Possible auth/quota issue');
}
Find popular glifs at https://glif.app/explore
Copy ID from URL: glif.app/glifs/{THIS_PART}
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience