404tradeos-llc/tradeos/deduplicating-costbook-items
Claude Code and agent skill by 404tradeos-llc/tradeos
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Removes duplicate or near-duplicate cost items using fuzzy matching, category comparison, and cost similarity thresholds. Use when consolidating datasets or identifying redundant CostBook items.
Install
npx vskill@latest install 404tradeos-llc/tradeos/deduplicating-costbook-itemsSKILL.md
The same SKILL.md was published earlier as 404tradeos-llc/tradeos/deduplicating-costbook-items.
Deduplicating CostBook Items
When to use this skill
- Merging two different CostBook item datasets or importing legacy CSVs.
- The user requests a cleanup of redundant or very similar CostBook items.
- A batch import appears to contain multiple line items for the exact same physical task or material.
Workflow
- [ ] Parse an array of
CostBookItemobjects. - [ ] Initialize
uniqueItems[]andmergedItems[]arrays for your output payload. - [ ] Iterate through the dataset and evaluate items against one another.
- [ ] Group items based on fuzzy name matching, category comparison, and cost similarity thresholds.
- [ ] Consolidate matched groups. Keep the strongest representative object in
uniqueItems[]. - [ ] Log every removed or consolidated duplicate in
mergedItems[]with an explanation. - [ ] Return the structured JSON output to the user.
Instructions
When deduplicating items, rely on heuristic thresholds to determine if two items represent the same real-world construction task.
Deduplication Logic & Heuristics
- Fuzzy Name Matching: Compare the
namefield using fuzzy logic. Ignore casing, punctuation, and simple pluralization. "Install 1/2in drywall" and "Installation of 1/2\" Drywall" are highly likely matches. - Strict Category Comparison: Items MUST share the exact same
categoryto be considered duplicates. Similar names in different trades (e.g., "Standard Fasteners" in Electrical vs Plumbing) should remain distinct. - Cost Similarity Threshold: Compare the total costs (Labor + Material + Equipment). If names are a fuzzy match and the costs vary by less than 5%, flag them as duplicates. If costs vary significantly (e.g., > 15%), they may represent different grades or regional factors—keep them distinct unless instructed otherwise.
- Merge Resolution: Once a duplicate cluster is found, retain the item with the most descriptive/complete
nameand place it inuniqueItems[].
Structured Output Payload
Do not permanently delete data without creating a clear paper trail:
Resources
- Ensure
CostBookItemobjects align with the base schema rules mapped out ingemini.md.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingpackages/knowledge-engine/agent-skills/skills/deduplicating-costbook-items/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/404tradeos-llc/tradeos/deduplicating-costbook-items)