Build self-improving agent skills with cognee

Quick overview A self-improving loop for agent skills, powered by the cognee Verified Node. When a skill's review scores below your threshold, it proposes a rewrite, and you approve the before/after diff before it's applied. No code required.

How it works Execute your workflow. Set the demo inputs (skill name, dataset name, skill procedure markdown, review task text, and the score threshold). Ingest the skill into cognee. Cognee reviews the skill’s performance and returns a JSON with a score and gaps. If the score is below the threshold, the workflow requests a cognee improvement proposal for the skill. The workflow retrieves the full proposal from cognee and builds a human-readable before/after diff. If the proposal is approved, the workflow applies the improvement in cognee, fetches the updated skill, and outputs the updated procedure and diff.

Setup Create a cognee API credential in n8n and use it in all cognee nodes (Ingest Skill, Review Skill, Propose Improvement, Get Proposal, Apply Improvement, Get Skill). Information for the credential (URL and API key) can be found in your Cognee Cloud account. Update the skill parameters (skill_name, dataset_name, skill_markdown, task_text, score_threshold, and approved) to match your use case. Ensure the referenced cognee dataset name exists so the skill can be stored and retrieved consistently.

0
Downloads
0
Views
6.93
Quality Score
beginner
Complexity
Author:Andrej Milicevic(View Original →)
Created:6/27/2026
Updated:6/27/2026

🔒 Please log in to import templates to n8n and favorite templates

Workflow Visualization

Loading...

Preparing workflow renderer

Comments (0)

Login to post comments