Skip to content

graphlit/skills

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Graphlit Skills

Build grounded chat, synced knowledge bases, and graph-aware applications with Graphlit.

Graphlit is the context layer for AI applications and agents. This repo gives developers and coding agents the canonical Graphlit path: ingest or sync content, wait for processing, retrieve explicit evidence, and stream grounded answers with streamAgent().

Install the Skills · Use the Graphlit Skill · Run the Example · Read the Docs · Open Graphlit Studio

Why This Repo Exists

When a developer asks an agent to "add Graphlit", the result should use Graphlit primitives instead of drifting into generic RAG scaffolding.

This repo provides:

  • a reusable graphlit skill that routes the agent to the right Graphlit references
  • a reusable durable-cli skill that teaches coding agents how to install, authenticate, connect source accounts, manage synced data sources, and operate Durable Agents from the terminal
  • a reusable graphlit-agent-tools skill for wiring @graphlit/agent-tools into tool-calling agents
  • a minimal Next.js example that proves the modern Graphlit app shape
  • task-specific implementation guides for ingestion, retrieval, collections, feeds, specifications, and knowledge graph workflows

What You Can Build

  • grounded chat over documents, websites, notes, transcripts, and synced external content
  • customer-scoped or workspace-scoped assistants using collections
  • continuously synced knowledge bases from Slack, Google Drive, email, RSS, S3, and web crawls
  • graph-aware applications that extract entities and relationships during ingest

Canonical Graphlit Path

  1. Verify credentials with getProject().
  2. Ingest content with ingestUri() or sync a source with createFeed().
  3. Wait for isContentDone() or isFeedDone() before retrieval depends on new content.
  4. Scope retrieval with a collection when the app has a clear dataset, tenant, customer, project, or workspace boundary.
  5. Use streamAgent() as the chat harness.
  6. Keep retrieval explicit through a standalone retrieve_contents tool backed by retrieveSources() and lookupContents().
  7. Return and render visible sources in the UI.

What You Get In This Repo

skills/graphlit/

The reusable Graphlit skill and its task-specific references. Start with SKILL.md when the goal is to integrate Graphlit into an application or have a coding agent do it correctly.

skills/durable-cli/

The reusable Durable CLI skill and its walkthrough references. Start with SKILL.md when the goal is to install, authenticate, connect source accounts, manage data sources, script, or operate Durable Agents from a terminal using the current command surface.

skills/graphlit-agent-tools/

The reusable Graphlit Agent Tools skill for adding @graphlit/agent-tools factories to tool-calling frameworks. Start with SKILL.md when the goal is to expose Graphlit retrieval, resource reading, mutation, enrichment, or media generation tools to an agent.

examples/nextjs-streaming-chat/

The canonical sample app for this repo. It shows:

  • URL ingestion with ingestUri()
  • readiness polling with isContentDone()
  • collection-scoped retrieval
  • streamAgent() with a standalone retrieve_contents tool
  • streamed answers with visible sources

Get Started

Install the Skills

Use the skills CLI through npx to install these skills into your agent environment:

npx skills add graphlit/skills

That installs the available skills from this repository into the current project for the detected agent. To see what is available before installing:

npx skills add graphlit/skills --list

Install a single skill when you only need one workflow:

npx skills add graphlit/skills --skill graphlit
npx skills add graphlit/skills --skill durable-cli
npx skills add graphlit/skills --skill graphlit-agent-tools

Useful install options:

  • --agent <agent-name> installs to a specific agent.
  • --agent '*' installs to every supported local agent.
  • --global installs at the user level instead of the current project.
  • --all installs every skill for every supported agent and skips prompts.

After installation, ask your agent to use $graphlit, $durable-cli, or $graphlit-agent-tools when you want it to follow the corresponding Graphlit workflow.

New to Graphlit?

  1. Open Graphlit Studio.
  2. Create your account, organization, and first project. No credit card is required, and the project starts with 100 free credits of usage.
  3. Select that project so its project card is visible.
  4. Choose the target environment tab, usually Preview or Production.
  5. Click Copy Environment Variables.
  6. Paste the copied values into .env.local.
  7. Add OPENAI_API_KEY for the streaming example.

Run the Example

cd examples/nextjs-streaming-chat
npm install
cp .env.example .env.local
npm run check
npm run dev

Open http://localhost:3000.

Success Looks Like

  • the app connects to the intended Graphlit project
  • a URL ingests successfully
  • retrieval waits for content readiness
  • the agent calls retrieve_contents
  • the answer streams incrementally
  • the UI shows the supporting sources

Design Principles

  • prefer Graphlit SDK primitives over generic RAG stacks
  • keep retrieval explicit and inspectable
  • do not rely on newly ingested or newly synced content until Graphlit says it is ready
  • keep examples small enough to copy into real apps quickly

The goal is to make Graphlit easy to adopt without hiding how Graphlit actually works.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors