Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ node_modules/
*.tgz
vindaris-graph.json
open-in-vindaris.html
strategy-wrapped.html
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,21 @@ Your assistant finds your goals in the tools and files it can already read (Noti

No account and no API key. The data stays in `vindaris-graph.json` in your assistant's workspace.

## Strategy Wrapped

Ask Claude:

> Run `npx my-strategy-wrapped 2026`

`my-strategy-wrapped` (and `my-strategy-wrapped-2026`, the same with the year built in) is a small entry package for `vindaris wrapped`: same check, different output: four cards for one LinkedIn post (1080 x 1350 PNG each), in the spirit of a year-in-review.

1. How much work your assistant read, and against how many goals
2. The share of current work that moved a goal forward
3. Your goal of the year: the share of linked work it took
4. Your strategy type, from The Sharpshooter to The Side-Quest Collector

The cards show numbers only. Goal titles, board names and your company name appear only with `--named`. `npx vindaris wrapped --demo` shows the cards on a fictional company.

## Commands

```
Expand All @@ -22,6 +37,7 @@ npx vindaris add <file|-> Add goals, KPIs, projects, tasks and links from JS
npx vindaris status What the graph holds so far
npx vindaris check [--json] Run the check and print the briefing
npx vindaris export Rewrite open-in-vindaris.html and print its link
npx vindaris wrapped Four Strategy Wrapped cards for LinkedIn (--named, --demo)
npx vindaris demo Run the check on a fictional company
```

Expand Down
47 changes: 47 additions & 0 deletions bin/vindaris.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { check } from '../src/check.js';
import { renderBriefing } from '../src/briefing.js';
import { exportLink, exportHtml } from '../src/export.js';
import { demoInput } from '../src/demo.js';
import { wrappedStats, wrappedCards, wrappedCaption, wrappedHtml } from '../src/wrapped.js';

const ROOT = join(dirname(fileURLToPath(import.meta.url)), '..');
const VERSION = JSON.parse(readFileSync(join(ROOT, 'package.json'), 'utf8')).version;
Expand Down Expand Up @@ -85,6 +86,7 @@ const HELP = `vindaris ${VERSION}: strategy check for AI agents
vindaris status What the graph holds so far.
vindaris check [--json] Run the check, print the briefing, write open-in-vindaris.html.
vindaris export Rewrite open-in-vindaris.html and print its link.
vindaris wrapped Make four Strategy Wrapped cards for LinkedIn (--named adds titles, --demo uses the fictional company, --year sets the year on the cards).
vindaris demo Run the check on a fictional company.
vindaris schema Where the Work Graph schema files are.
vindaris reset Start over with an empty graph.
Expand Down Expand Up @@ -140,6 +142,51 @@ switch (cmd) {
console.log(flag('json') ? JSON.stringify(r, null, 2) : renderBriefing(r, { openFile: page?.file }));
break;
}
case 'wrapped': {
const demo = flag('demo');
let g;
if (demo) { g = emptyGraph(); mergeBatch(g, normalizeInput(demoInput()).batch); } else g = load();
const again = process.env.VINDARIS_WRAPPED_CMD || `vindaris wrapped${opt('year') ? ` --year ${opt('year')}` : ''}`;
if (!g.nodes.some((n) => n.type === 'GOAL' && !n.ignored)) {
// First run: hand the agent the guide right away, so one sentence from the person is enough.
console.log(readFileSync(join(ROOT, 'src', 'guide.md'), 'utf8'));
if (isTemp(process.cwd()) && !process.env.VINDARIS_GRAPH) {
console.log(`Note: this is a temp folder (${process.cwd()}). cd to the person's project or documents folder before you go on (see "Before you start").`);
} else if (!existsSync(GRAPH)) save(emptyGraph());
console.log(`\n(For the agent: the person asked for their Strategy Wrapped. The graph has no goals yet. Do steps 1 to 5 above, adding the data with \`${process.env.VINDARIS_PROG || 'vindaris'} add <file>\` from this folder, then run \`${again}\` again to make the four cards. Skip step 6.)`);
break;
}
const r = check(g, { asOf: opt('as-of') });
const s = wrappedStats(g, r, { year: opt('year') });
const named = flag('named');
const caption = wrappedCaption(s);
const file = join(demo ? process.cwd() : dirname(GRAPH), 'strategy-wrapped.html');
writeFileSync(file, wrappedHtml(wrappedCards(s, { named, demo }), caption, { demo }));
let shown = file;
if (existsSync(OUTPUTS) && dirname(file) !== OUTPUTS) {
try { const copy = join(OUTPUTS, 'strategy-wrapped.html'); copyFileSync(file, copy); shown = copy; } catch { /* keep the local file */ }
}
const page = demo ? null : writeOpenPage(g);
if (flag('json')) { console.log(JSON.stringify({ ...s, type: { id: s.type.id, name: s.type.name, text: s.type.text }, file: shown, caption, openInVindaris: page?.file || null }, null, 2)); break; }
const cov = s.coverage == null ? 'no work read' : `${Math.round(s.coverage * 100)}% of current work traces to a goal`;
console.log(`# My Strategy Wrapped ${s.year}${demo ? ' (fictional demo)' : ''}

Wrote ${shown}: four cards, 1080 x 1350 each, with a PNG download button per card and the post text.

1. ${s.counts.currentTasks ? `${s.counts.currentTasks} pieces of work` : `${s.counts.goals} goals`} read (${s.counts.goals} goals, ${s.counts.kpis} KPIs).
2. ${cov}.
3. Goal of the year: ${s.topGoal ? `${s.topGoal.tasks} tasks, ${s.topGoal.done} done` : 'none yet, no task traces to a goal'}.
4. Strategy type: ${s.type.name}. ${s.type.text}

Cards ${named ? 'show goal titles, board names and the company name' : 'show numbers only: no goal titles, names or company name'}.

Post text (the person edits it before posting):

${caption}

(For the agent: give the person ${shown} and say they can download each card as PNG there and post all four in one LinkedIn post. ${named ? 'The cards show goal titles: remind the person that the post is public.' : `If they want goal titles and the company name on the cards, ask them first, then run \`${again} --named\`: the cards go public.`} Do not paste the SVG or HTML into the chat.${page ? ` End with one line offering ${page.file}, which opens the plan on the Vindaris strategy map.` : ''})`);
break;
}
case 'demo': {
const g = emptyGraph();
const { batch } = normalizeInput(demoInput());
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "vindaris",
"version": "0.1.3",
"version": "0.2.0",
"description": "Strategy check for AI agents. Your agent links the work in your tools to your goals, and vindaris flags execution risk. Runs locally, no account.",
"type": "module",
"bin": { "vindaris": "bin/vindaris.js" },
"files": ["bin", "src", "schema", "examples", "README.md", "LICENSE"],
"engines": { "node": ">=18" },
"scripts": { "test": "node --test" },
"keywords": ["strategy", "okr", "goals", "kpi", "execution", "work-graph", "ai-agent", "claude", "mcp", "jira"],
"keywords": ["strategy", "okr", "goals", "kpi", "execution", "work-graph", "ai-agent", "claude", "mcp", "jira", "wrapped", "linkedin"],
"homepage": "https://vindaris.com/ai-agents",
"repository": { "type": "git", "url": "git+https://github.com/Vindaris/vindaris-cli.git" },
"license": "MIT",
Expand Down
23 changes: 23 additions & 0 deletions packages/my-strategy-wrapped-2026/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# my-strategy-wrapped-2026

Your strategy year in four cards, made by your AI assistant. Ask Claude:

> Run `npx my-strategy-wrapped-2026`

Claude finds your goals in the tools and files it can already read, links the work in Jira, Linear, Asana, GitHub or monday.com to them, and [vindaris](https://www.npmjs.com/package/vindaris) checks the result. You get `strategy-wrapped.html`: four 1080 x 1350 cards for one LinkedIn post, a PNG download for each, and a post text to start from.

1. How much work was read, and against how many goals
2. The share of current work that moved a goal forward
3. Your goal of the year: the share of linked work it took
4. Your strategy type

The cards show numbers only. Goal titles and your company name appear only when you ask (`--named`). No account, no API key; the data stays in `vindaris-graph.json` in your assistant's workspace.

```
npx my-strategy-wrapped 2026 Make the cards (prints the guide first if there is no data yet)
npx my-strategy-wrapped 2026 --named The same, with goal titles and the company name
npx my-strategy-wrapped --demo The cards for a fictional company
npx my-strategy-wrapped add <file> Any vindaris command passes through
```

`npx my-strategy-wrapped-2026` does the same as `npx my-strategy-wrapped 2026`. Made by [Vindaris](https://vindaris.com/ai-agents).
10 changes: 10 additions & 0 deletions packages/my-strategy-wrapped-2026/bin/my-strategy-wrapped-2026.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env node
// npx my-strategy-wrapped-2026: the same as npx my-strategy-wrapped 2026.
process.env.MY_STRATEGY_WRAPPED_YEAR ||= '2026';
process.env.MY_STRATEGY_WRAPPED_NAME ||= 'my-strategy-wrapped-2026';
try {
await import('my-strategy-wrapped/bin/my-strategy-wrapped.js');
} catch (e) {
if (e.code !== 'ERR_MODULE_NOT_FOUND' || !String(e.message).includes('my-strategy-wrapped')) throw e;
await import('../../my-strategy-wrapped/bin/my-strategy-wrapped.js'); // inside the vindaris-cli repo
}
15 changes: 15 additions & 0 deletions packages/my-strategy-wrapped-2026/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "my-strategy-wrapped-2026",
"version": "0.2.0",
"description": "My Strategy Wrapped 2026: four LinkedIn cards on how your work lined up with your goals this year. Your AI agent reads your tools, Vindaris checks the plan. Runs locally, no account.",
"type": "module",
"bin": { "my-strategy-wrapped-2026": "bin/my-strategy-wrapped-2026.js" },
"files": ["bin", "README.md"],
"engines": { "node": ">=18" },
"dependencies": { "my-strategy-wrapped": "^0.2.0" },
"keywords": ["strategy", "wrapped", "linkedin", "okr", "goals", "claude", "ai-agent", "vindaris"],
"homepage": "https://vindaris.com/ai-agents",
"repository": { "type": "git", "url": "git+https://github.com/Vindaris/vindaris-cli.git", "directory": "packages/my-strategy-wrapped-2026" },
"license": "MIT",
"author": "Vindaris"
}
23 changes: 23 additions & 0 deletions packages/my-strategy-wrapped/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# my-strategy-wrapped

Your strategy year in four cards, made by your AI assistant. Ask Claude:

> Run `npx my-strategy-wrapped 2026`

Claude finds your goals in the tools and files it can already read, links the work in Jira, Linear, Asana, GitHub or monday.com to them, and [vindaris](https://www.npmjs.com/package/vindaris) checks the result. You get `strategy-wrapped.html`: four 1080 x 1350 cards for one LinkedIn post, a PNG download for each, and a post text to start from.

1. How much work was read, and against how many goals
2. The share of current work that moved a goal forward
3. Your goal of the year: the share of linked work it took
4. Your strategy type

The cards show numbers only. Goal titles and your company name appear only when you ask (`--named`). No account, no API key; the data stays in `vindaris-graph.json` in your assistant's workspace.

```
npx my-strategy-wrapped 2026 Make the cards (prints the guide first if there is no data yet)
npx my-strategy-wrapped 2026 --named The same, with goal titles and the company name
npx my-strategy-wrapped --demo The cards for a fictional company
npx my-strategy-wrapped add <file> Any vindaris command passes through
```

`npx my-strategy-wrapped-2026` does the same as `npx my-strategy-wrapped 2026`. Made by [Vindaris](https://vindaris.com/ai-agents).
30 changes: 30 additions & 0 deletions packages/my-strategy-wrapped/bin/my-strategy-wrapped.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/usr/bin/env node
// npx my-strategy-wrapped [year] [options]: the Strategy Wrapped entry to the
// vindaris package. With no command (or only a year) it runs `vindaris wrapped`;
// any other vindaris command passes through (add, status, scan, guide, ...).
import { spawnSync } from 'node:child_process';
import { createRequire } from 'node:module';
import { existsSync } from 'node:fs';
import { join, dirname } from 'node:path';
import { fileURLToPath } from 'node:url';

const here = dirname(fileURLToPath(import.meta.url));
function vindarisBin() {
try { return createRequire(import.meta.url).resolve('vindaris/bin/vindaris.js'); } catch { /* not installed */ }
const local = join(here, '..', '..', '..', 'bin', 'vindaris.js'); // inside the vindaris-cli repo
if (existsSync(local)) return local;
console.error('my-strategy-wrapped: the vindaris package is missing. Run: npx vindaris wrapped');
process.exit(1);
}

const COMMANDS = new Set(['guide', 'init', 'scan', 'add', 'status', 'check', 'export', 'demo', 'schema', 'reset', 'wrapped', 'help', '--help', '-h', 'version', '--version', '-v']);
let args = process.argv.slice(2);
const year = process.env.MY_STRATEGY_WRAPPED_YEAR || (/^\d{4}$/.test(args[0] || '') ? args.shift() : null);
const self = `npx ${process.env.MY_STRATEGY_WRAPPED_NAME || 'my-strategy-wrapped'}${year && !process.env.MY_STRATEGY_WRAPPED_YEAR ? ` ${year}` : ''}`;

if (!args.length || !COMMANDS.has(args[0])) args = ['wrapped', ...args];
if (args[0] === 'wrapped' && year && !args.includes('--year')) args.push('--year', year);

const env = { ...process.env, VINDARIS_WRAPPED_CMD: self, VINDARIS_PROG: `npx ${process.env.MY_STRATEGY_WRAPPED_NAME || 'my-strategy-wrapped'}` };
const res = spawnSync(process.execPath, [vindarisBin(), ...args], { stdio: 'inherit', env });
process.exit(res.status ?? 1);
15 changes: 15 additions & 0 deletions packages/my-strategy-wrapped/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "my-strategy-wrapped",
"version": "0.2.0",
"description": "My Strategy Wrapped: four LinkedIn cards on how your work lined up with your goals this year. Your AI agent reads your tools, Vindaris checks the plan. Runs locally, no account.",
"type": "module",
"bin": { "my-strategy-wrapped": "bin/my-strategy-wrapped.js" },
"files": ["bin", "README.md"],
"engines": { "node": ">=18" },
"dependencies": { "vindaris": "^0.2.0" },
"keywords": ["strategy", "wrapped", "linkedin", "okr", "goals", "claude", "ai-agent", "vindaris"],
"homepage": "https://vindaris.com/ai-agents",
"repository": { "type": "git", "url": "git+https://github.com/Vindaris/vindaris-cli.git", "directory": "packages/my-strategy-wrapped" },
"license": "MIT",
"author": "Vindaris"
}
4 changes: 2 additions & 2 deletions src/check.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export function isCurrent(task, now) {
return last == null || now - last <= RULES.recentDays * DAY;
}

function buildIndex(graph) {
export function buildIndex(graph) {
const byId = new Map(graph.nodes.map((n) => [n.id, n]));
const up = new Map(); // id -> [parent ids] over CONTRIBUTES_TO / ALIGNED_TO
const down = new Map(); // id -> [child ids]
Expand All @@ -51,7 +51,7 @@ function buildIndex(graph) {
return { byId, up, down };
}

function reach(start, adj) {
export function reach(start, adj) {
const seen = new Set();
const stack = [start];
while (stack.length) {
Expand Down
9 changes: 9 additions & 0 deletions src/guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,15 @@ Report to the person in plain words:

Writing the file sends nothing. When the person clicks the button, the titles in it go to Vindaris; nothing else leaves this conversation. Signing up there connects their tools, and Vindaris runs this check every day with the full engine: it grades every signal, follows Slack, Teams and meeting transcripts, and flags risk to the people who own it.

## Strategy Wrapped: four cards for LinkedIn

If the person asked for their Strategy Wrapped (for example "Run npx My Strategy Wrapped 2026", which means `npx my-strategy-wrapped 2026`), do steps 1 to 5 the same way, then run `vindaris wrapped` (or `npx my-strategy-wrapped 2026`) instead of `vindaris check`. It writes `strategy-wrapped.html`: four cards (1080 x 1350 each, the 4:5 portrait format LinkedIn shows best), a PNG download button for each, and a post text to start from. In a hosted sandbox a copy also goes to the outputs folder.

- The cards show numbers only: how much work was read, the share that moved a goal forward, the goal of the year as a share of linked work, and the company's strategy type.
- Goal titles, board names and the company name stay off the cards, because the post is public. Only when the person asks for them, run `vindaris wrapped --named`.
- Give the person the file, tell them to download the four cards and post them together in one LinkedIn post, and show the post text. Do not paste the cards into the chat.
- To show the cards before reading anything, run `vindaris wrapped --demo` (a fictional company, marked as a demo on every card).

## When you find nothing

If no tool, file or memory gives you the goals, ask the person these four questions, one at a time, then write what they answer as goals, KPIs and projects:
Expand Down
Loading
Loading