Enterprise data retrieval
Techniques for retrieving and querying structured enterprise data from JSON files containing slack messages, documents, meeting transcripts, and URLs.From its SKILL.md
npx -y skills add cxcscmu/SkillLearnBench --skill enterprise-data-retrievalAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
SKILL.md
2.1 KB, 493 tokens by cl100k_base, as published. Nobody here has run it
Enterprise Data Retrieval
Data Structure
Enterprise data is typically organized by product in /root/DATA/products/<ProductName>.json with the following top-level keys:
slack: list of slack messages withChannel,Message,ThreadReplies,iddocuments: list of docs withcontent,date,document_link,author,type,idmeeting_transcripts: list of transcripts withtranscript,date,document_type,participants,idmeeting_chats: list of chat messagesurls: list of URLs withlink,description,idprs: list of PRs withtitle,summary,link,mergeable,merged,number,state,user,created_at,reviews,id
Finding Documents by Type
import json
with open('/root/DATA/products/ContentForce.json') as f:
data = json.load(f)
# Find documents by type (e.g., "Market Research Report")
docs = [d for d in data['documents'] if 'market research' in d['type'].lower() or 'market research' in d['content'].lower()]
Finding Authors and Reviewers
# Documents have an 'author' field; PRs have 'user' and 'reviews'
for doc in docs:
print(doc['author']) # author employee ID or name
# For PRs
for pr in data['prs']:
print(pr['user']) # PR author
for review in pr['reviews']:
print(review) # reviewer info
Searching Slack for Keywords
keyword = 'competitor'
results = []
for msg in data['slack']:
if keyword.lower() in msg['Message'].lower():
results.append(msg)
for reply in msg.get('ThreadReplies', []):
if keyword.lower() in reply.lower():
results.append({'parent': msg, 'reply': reply})
Metadata Files
/root/DATA/metadata/employee.json: employee records mapping IDs to names/root/DATA/metadata/customers_data.json: customer records/root/DATA/metadata/salesforce_team.json: sales team info
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.