memory-for-ai-usage

Guides when to query the memory-for-ai MCP knowledge graph for Flutter code analysis.

Updated May 19, 2026
One-click install
npx skills add https://github.com/LonelyTraderBay/vittrade-flutter --skill memory-for-ai-usage-lonelytraderbay
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: memory-for-ai-usage
Source: https://github.com/LonelyTraderBay/vittrade-flutter/tree/main/.agents/skills/memory-for-ai-usage
Command: npx skills add https://github.com/LonelyTraderBay/vittrade-flutter --skill memory-for-ai-usage-lonelytraderbay

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? AI agents working on the VitTrade Flutter repo waste tokens and get wrong answers when they misuse the memory-for-ai MCP knowledge graph, such as using it for exact-name searches or trusting it as the source of truth for edits. This Skill encodes measured decision rules so the graph is used only where it beats grep and Read. ## Core Features & Use Cases - Blast-radius analysis: Trace inbound callers and detect change impact before editing shared widgets, spacing tokens, scaffolds, or the router, where grep cannot answer multi-hop impact in one call. - Architecture and discovery queries: Use get_architecture, query_graph with complexity columns, and BM25 or semantic search when no exact symbol name is known. - Accuracy guardrails: Enforce freshness checks against git log, textual-resolution caveats for Dart edges, and safe retry patterns for connection errors. - Use Case: Before refactoring a Vit shared widget used by dozens of features, run trace_path inbound to list impacted callers and include them in the edit plan. ## Quick Start Before editing any shared widget or router file, ask the agent to check the memory-for-ai graph for callers and blast radius following this Skill's rules.

Frequently Asked Questions about memory-for-ai-usage

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I find all callers of a shared Flutter widget before editing it?

Use the memory-for-ai graph's trace_path tool with inbound direction on the widget name to list multi-hop callers in one call. This beats grep for high-fan-in code like shared Vit widgets or spacing tokens referenced across 100+ files.

When should I use a code knowledge graph instead of grep?

Use the graph for multi-hop impact tracing, architecture summaries, and fuzzy discovery without an exact name. Use grep for exact-name usage search, since graph search_code can return false positives on structural enrichment.

Can I trust the knowledge graph as the source of truth for code edits?

No. Always read the real file before editing, because get_code_snippet is best-effort with textual Dart resolution gaps. The graph tells you where to look; the file content is the truth.

Why does the memory-for-ai MCP connection close on some queries?

Exotic Cypher predicates like ENDS WITH on unverified properties can kill the connection. Retry once with a simpler known-stable pattern such as MATCH on Class with CONTAINS, and fall back to grep if it still fails.

How do I check if the code graph index is stale?

Call list_projects with defaults to read indexed_at and compare it against git log -1. If the index predates recent commits or you changed many files, re-index with index_repository before trusting relationship answers.