brainstorming
Structured design dialogue that validates ideas before implementation begins.
manage-concepts-db
Manage the concepts database - verify, add, update, and check for duplicates before modifying concepts. MANDATORY for all concept operations.
Full skill instructions
This skill provides workflows for working with the concepts SQLite database to prevent duplicates and maintain data quality.
ALWAYS verify before adding a new concept
npx tsx scripts/verify-concept.ts BEFORE creating any new concept JSON fileALWAYS update database after concept changes
npx tsx scripts/sync-concepts-db.tsNEVER skip duplicate checks
All scripts are TypeScript and should be invoked with npx tsx:
| Script | Purpose | When to Use |
|---|---|---|
init-concepts-db.ts | Initialize and populate database | First time setup or rebuild |
verify-concept.ts | Check if concept exists before adding | BEFORE creating any new concept |
sync-concepts-db.ts | Sync database with JSON files | AFTER adding/editing any concept |
merge-duplicates.ts | Merge duplicate concepts | When duplicates confirmed |
find-duplicates.ts | Scan all concepts for potential duplicates | Periodic cleanup / data quality |
npx tsx scripts/verify-concept.ts \
--name "Concept Name" \
--summary "Brief summary" \
--aliases "Alias 1,Alias 2" \
--related-notes "https://notes.dsebastien.net/..."
Interpret Results:
Only proceed if confidence <90% OR you've manually verified it's unique.
Create /home/dsebastien/wks/concept-cards/src/data/concepts/{id}.json following schema in AGENTS.md.
npx tsx scripts/sync-concepts-db.ts
Verify concept was added to database successfully.
Make changes to /home/dsebastien/wks/concept-cards/src/data/concepts/{id}.json
npx tsx scripts/sync-concepts-db.ts
Database will automatically update based on content hash change.
# Scan all concepts for duplicates
npx tsx scripts/find-duplicates.ts --threshold 80
npx tsx scripts/merge-duplicates.ts \
--source {source-id} \
--target {target-id} \
--strategy merge-fields
This will:
npx tsx scripts/sync-concepts-db.ts
# Check target concept exists
cat /home/dsebastien/wks/concept-cards/src/data/concepts/{target-id}.json
# Check source concept deleted
ls /home/dsebastien/wks/concept-cards/src/data/concepts/{source-id}.json # should error
For EACH concept to add:
verify-concept.ts with name and summarysync-concepts-db.tsRun final sync after all concepts added:
npx tsx scripts/sync-concepts-db.ts
Create a temporary script that:
verify-concept.tsReview report with user
Manually handle high-confidence duplicates
Run final sync
Run similarity check:
npx tsx scripts/verify-concept.ts --name "Concept Name" --summary "..."
If duplicates confirmed, merge:
npx tsx scripts/merge-duplicates.ts --source {id1} --target {id2} --strategy merge-fields
npx tsx scripts/sync-concepts-db.ts
# View database stats
sqlite3 /home/dsebastien/wks/concept-cards/concepts.db "
SELECT
(SELECT COUNT(*) FROM concepts) as total_concepts,
(SELECT COUNT(*) FROM concept_aliases) as total_aliases,
(SELECT COUNT(*) FROM concept_tags) as total_tags,
(SELECT COUNT(*) FROM duplicate_checks) as total_checks;
"
If database gets corrupted or out of sync:
# Delete database
rm /home/dsebastien/wks/concept-cards/concepts.db
# Reinitialize
npx tsx scripts/init-concepts-db.ts
Issue: verify-concept.ts shows false positives
Solution: Adjust similarity thresholds in script. Review and tune weights.
Issue: Database out of sync with JSON files
Solution: Run npx tsx scripts/sync-concepts-db.ts
Issue: Need to force-add concept despite high confidence match
Solution: Add --force flag to skip duplicate check (use sparingly, document why)
/home/dsebastien/wks/concept-cards/documentation/plans/sqlite-duplicate-detection-plan.md/home/dsebastien/wks/concept-cards/documentation/plans/concepts-database.md# 1. Verify concept doesn't exist
npx tsx scripts/verify-concept.ts \
--name "Parkinson's Law" \
--summary "Work expands to fill time available"
# Output shows: Confidence: 15% - No strong matches found. Safe to add.
# 2. Create concept JSON file
# (Create /home/dsebastien/wks/concept-cards/src/data/concepts/parkinsons-law.json)
# 3. Sync database
npx tsx scripts/sync-concepts-db.ts
# Output: ✓ Added parkinsons-law to database
Structured design dialogue that validates ideas before implementation begins.
Comprehensive design intelligence for web and mobile UI/UX across 10 technology stacks.
Comprehensive implementation plans for multi-step tasks, breaking down specs into bite-sized, testable steps.
Introduction to the obra skills system with mandatory skill invocation rules and best practices.
Execute a written implementation plan with critical review and task checkpoints.
Delegate independent tasks to specialized agents working concurrently with isolated context.
Isolated git worktrees with smart directory selection and safety verification.
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.
Plan searchable and shareable content that drives traffic, builds authority, and generates leads.
README-first repository scanner that extracts commands and classifies reproduction candidates without executing them.
Brainstorm and prioritize marketing strategies tailored to your SaaS stage, budget, and goals.
Plan and optimize your website's page hierarchy, navigation, URL structure, and internal linking.
The world's fastest calendar for remote work
Capture, organize, and utilize your knowledge effortlessly.
Instant Summaries of Audio & Video Interviews with AnySummary
Transform PDFs into engaging mind maps.
Chat with any PDF instantly
Create an optimal daily plan using your voice
A productivity platform to centralize organizational knowledge and workflows with contextual AI assistance.
AskYourPDF Pricing Plans: Tailored to Your Needs