[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6AFDWX37H2PZJ8SG7H2E1WZ":3,"skill-same:01M6AFDWX37H2PZJ8SG7H2E1WZ":112},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":47,"linkOnly":48,"markdownContent":49,"markdownBody":50,"frontMatter":51,"refName":52,"commitSha":53,"skillDirectory":54,"forksCount":55,"repositoryHtmlUrl":56,"repositoryHomepageUrl":57,"ownerHtmlUrl":58,"ownerBlogUrl":59,"ownerDescription":60,"updatedAt":61,"install":62,"resources":75},"01M6AFDWX37H2PZJ8SG7H2E1WZ","fda-database","FDA 监管数据查询","Query openFDA API for drugs, devices, adverse events, recalls, regulatory submissions (510k, PMA), substance identification (UNII), for FDA regulatory data analysis and safety research.","查询 openFDA API 获取药品、医疗器械、不良事件、召回、监管申报（510k、PMA）及物质识别（UNII）数据，用于 FDA 监管数据分析与安全研究。","davila7\u002Fclaude-code-templates","davila7","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6216945?v=4","01M6ADEWWFPS191NFM0Y1EX1JH","Daniel Avila","01M6ADJHGM78PHQRD3XZTFDVKK",33602,"MIT",null,"https:\u002F\u002Fgithub.com\u002Fdavila7\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fscientific\u002Ffda-database\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8C904Y5EK238S25X0PYJRHW","FDA 监管合规","SCENARIO","使用场景",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C90AZMF1G2PQCKFZMK123Q","法规事务专员","PROFESSION","适用职业",[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],"database","fda database","fda","data analysis","research","data","Safety","devices","analysis","api","regulatory","query","drugs","events","identification","for","2026-11-10 10:12:30",false,"---\nname: fda-database\ndescription: \"Query openFDA API for drugs, devices, adverse events, recalls, regulatory submissions (510k, PMA), substance identification (UNII), for FDA regulatory data analysis and safety research.\"\n---\n\n# FDA Database Access\n\n## Overview\n\nAccess comprehensive FDA regulatory data through openFDA, the FDA's initiative to provide open APIs for public datasets. Query information about drugs, medical devices, foods, animal\u002Fveterinary products, and substances using Python with standardized interfaces.\n\n**Key capabilities:**\n- Query adverse events for drugs, devices, foods, and veterinary products\n- Access product labeling, approvals, and regulatory submissions\n- Monitor recalls and enforcement actions\n- Look up National Drug Codes (NDC) and substance identifiers (UNII)\n- Analyze device classifications and clearances (510k, PMA)\n- Track drug shortages and supply issues\n- Research chemical structures and substance relationships\n\n## When to Use This Skill\n\nThis skill should be used when working with:\n- **Drug research**: Safety profiles, adverse events, labeling, approvals, shortages\n- **Medical device surveillance**: Adverse events, recalls, 510(k) clearances, PMA approvals\n- **Food safety**: Recalls, allergen tracking, adverse events, dietary supplements\n- **Veterinary medicine**: Animal drug adverse events by species and breed\n- **Chemical\u002Fsubstance data**: UNII lookup, CAS number mapping, molecular structures\n- **Regulatory analysis**: Approval pathways, enforcement actions, compliance tracking\n- **Pharmacovigilance**: Post-market surveillance, safety signal detection\n- **Scientific research**: Drug interactions, comparative safety, epidemiological studies\n\n## Quick Start\n\n### 1. Basic Setup\n\n```python\nfrom scripts.fda_query import FDAQuery\n\n# Initialize (API key optional but recommended)\nfda = FDAQuery(api_key=\"YOUR_API_KEY\")\n\n# Query drug adverse events\nevents = fda.query_drug_events(\"aspirin\", limit=100)\n\n# Get drug labeling\nlabel = fda.query_drug_label(\"Lipitor\", brand=True)\n\n# Search device recalls\nrecalls = fda.query(\"device\", \"enforcement\",\n                   search=\"classification:Class+I\",\n                   limit=50)\n```\n\n### 2. API Key Setup\n\nWhile the API works without a key, registering provides higher rate limits:\n- **Without key**: 240 requests\u002Fmin, 1,000\u002Fday\n- **With key**: 240 requests\u002Fmin, 120,000\u002Fday\n\nRegister at: https:\u002F\u002Fopen.fda.gov\u002Fapis\u002Fauthentication\u002F\n\nSet as environment variable:\n```bash\nexport FDA_API_KEY=\"your_key_here\"\n```\n\n### 3. Running Examples\n\n```bash\n# Run comprehensive examples\npython scripts\u002Ffda_examples.py\n\n# This demonstrates:\n# - Drug safety profiles\n# - Device surveillance\n# - Food recall monitoring\n# - Substance lookup\n# - Comparative drug analysis\n# - Veterinary drug analysis\n```\n\n## FDA Database Categories\n\n### Drugs\n\nAccess 6 drug-related endpoints covering the full drug lifecycle from approval to post-market surveillance.\n\n**Endpoints:**\n1. **Adverse Events** - Reports of side effects, errors, and therapeutic failures\n2. **Product Labeling** - Prescribing information, warnings, indications\n3. **NDC Directory** - National Drug Code product information\n4. **Enforcement Reports** - Drug recalls and safety actions\n5. **Drugs@FDA** - Historical approval data since 1939\n6. **Drug Shortages** - Current and resolved supply issues\n\n**Common use cases:**\n```python\n# Safety signal detection\nfda.count_by_field(\"drug\", \"event\",\n                  search=\"patient.drug.medicinalproduct:metformin\",\n                  field=\"patient.reaction.reactionmeddrapt\")\n\n# Get prescribing information\nlabel = fda.query_drug_label(\"Keytruda\", brand=True)\n\n# Check for recalls\nrecalls = fda.query_drug_recalls(drug_name=\"metformin\")\n\n# Monitor shortages\nshortages = fda.query(\"drug\", \"drugshortages\",\n                     search=\"status:Currently+in+Shortage\")\n```\n\n**Reference:** See `references\u002Fdrugs.md` for detailed documentation\n\n### Devices\n\nAccess 9 device-related endpoints covering medical device safety, approvals, and registrations.\n\n**Endpoints:**\n1. **Adverse Events** - Device malfunctions, injuries, deaths\n2. **510(k) Clearances** - Premarket notifications\n3. **Classification** - Device categories and risk classes\n4. **Enforcement Reports** - Device recalls\n5. **Recalls** - Detailed recall information\n6. **PMA** - Premarket approval data for Class III devices\n7. **Registrations & Listings** - Manufacturing facility data\n8. **UDI** - Unique Device Identification database\n9. **COVID-19 Serology** - Antibody test performance data\n\n**Common use cases:**\n```python\n# Monitor device safety\nevents = fda.query_device_events(\"pacemaker\", limit=100)\n\n# Look up device classification\nclassification = fda.query_device_classification(\"DQY\")\n\n# Find 510(k) clearances\nclearances = fda.query_device_510k(applicant=\"Medtronic\")\n\n# Search by UDI\ndevice_info = fda.query(\"device\", \"udi\",\n                       search=\"identifiers.id:00884838003019\")\n```\n\n**Reference:** See `references\u002Fdevices.md` for detailed documentation\n\n### Foods\n\nAccess 2 food-related endpoints for safety monitoring and recalls.\n\n**Endpoints:**\n1. **Adverse Events** - Food, dietary supplement, and cosmetic events\n2. **Enforcement Reports** - Food product recalls\n\n**Common use cases:**\n```python\n# Monitor allergen recalls\nrecalls = fda.query_food_recalls(reason=\"undeclared peanut\")\n\n# Track dietary supplement events\nevents = fda.query_food_events(\n    industry=\"Dietary Supplements\")\n\n# Find contamination recalls\nlisteria = fda.query_food_recalls(\n    reason=\"listeria\",\n    classification=\"I\")\n```\n\n**Reference:** See `references\u002Ffoods.md` for detailed documentation\n\n### Animal & Veterinary\n\nAccess veterinary drug adverse event data with species-specific information.\n\n**Endpoint:**\n1. **Adverse Events** - Animal drug side effects by species, breed, and product\n\n**Common use cases:**\n```python\n# Species-specific events\ndog_events = fda.query_animal_events(\n    species=\"Dog\",\n    drug_name=\"flea collar\")\n\n# Breed predisposition analysis\nbreed_query = fda.query(\"animalandveterinary\", \"event\",\n    search=\"reaction.veddra_term_name:*seizure*+AND+\"\n           \"animal.breed.breed_component:*Labrador*\")\n```\n\n**Reference:** See `references\u002Fanimal_veterinary.md` for detailed documentation\n\n### Substances & Other\n\nAccess molecular-level substance data with UNII codes, chemical structures, and relationships.\n\n**Endpoints:**\n1. **Substance Data** - UNII, CAS, chemical structures, relationships\n2. **NSDE** - Historical substance data (legacy)\n\n**Common use cases:**\n```python\n# UNII to CAS mapping\nsubstance = fda.query_substance_by_unii(\"R16CO5Y76E\")\n\n# Search by name\nresults = fda.query_substance_by_name(\"acetaminophen\")\n\n# Get chemical structure\nstructure = fda.query(\"other\", \"substance\",\n    search=\"names.name:ibuprofen+AND+substanceClass:chemical\")\n```\n\n**Reference:** See `references\u002Fother.md` for detailed documentation\n\n## Common Query Patterns\n\n### Pattern 1: Safety Profile Analysis\n\nCreate comprehensive safety profiles combining multiple data sources:\n\n```python\ndef drug_safety_profile(fda, drug_name):\n    \"\"\"Generate complete safety profile.\"\"\"\n\n    # 1. Total adverse events\n    events = fda.query_drug_events(drug_name, limit=1)\n    total = events[\"meta\"][\"results\"][\"total\"]\n\n    # 2. Most common reactions\n    reactions = fda.count_by_field(\n        \"drug\", \"event\",\n        search=f\"patient.drug.medicinalproduct:*{drug_name}*\",\n        field=\"patient.reaction.reactionmeddrapt\",\n        exact=True\n    )\n\n    # 3. Serious events\n    serious = fda.query(\"drug\", \"event\",\n        search=f\"patient.drug.medicinalproduct:*{drug_name}*+AND+serious:1\",\n        limit=1)\n\n    # 4. Recent recalls\n    recalls = fda.query_drug_recalls(drug_name=drug_name)\n\n    return {\n        \"total_events\": total,\n        \"top_reactions\": reactions[\"results\"][:10],\n        \"serious_events\": serious[\"meta\"][\"results\"][\"total\"],\n        \"recalls\": recalls[\"results\"]\n    }\n```\n\n### Pattern 2: Temporal Trend Analysis\n\nAnalyze trends over time using date ranges:\n\n```python\nfrom datetime import datetime, timedelta\n\ndef get_monthly_trends(fda, drug_name, months=12):\n    \"\"\"Get monthly adverse event trends.\"\"\"\n    trends = []\n\n    for i in range(months):\n        end = datetime.now() - timedelta(days=30*i)\n        start = end - timedelta(days=30)\n\n        date_range = f\"[{start.strftime('%Y%m%d')}+TO+{end.strftime('%Y%m%d')}]\"\n        search = f\"patient.drug.medicinalproduct:*{drug_name}*+AND+receivedate:{date_range}\"\n\n        result = fda.query(\"drug\", \"event\", search=search, limit=1)\n        count = result[\"meta\"][\"results\"][\"total\"] if \"meta\" in result else 0\n\n        trends.append({\n            \"month\": start.strftime(\"%Y-%m\"),\n            \"events\": count\n        })\n\n    return trends\n```\n\n### Pattern 3: Comparative Analysis\n\nCompare multiple products side-by-side:\n\n```python\ndef compare_drugs(fda, drug_list):\n    \"\"\"Compare safety profiles of multiple drugs.\"\"\"\n    comparison = {}\n\n    for drug in drug_list:\n        # Total events\n        events = fda.query_drug_events(drug, limit=1)\n        total = events[\"meta\"][\"results\"][\"total\"] if \"meta\" in events else 0\n\n        # Serious events\n        serious = fda.query(\"drug\", \"event\",\n            search=f\"patient.drug.medicinalproduct:*{drug}*+AND+serious:1\",\n            limit=1)\n        serious_count = serious[\"meta\"][\"results\"][\"total\"] if \"meta\" in serious else 0\n\n        comparison[drug] = {\n            \"total_events\": total,\n            \"serious_events\": serious_count,\n            \"serious_rate\": (serious_count\u002Ftotal*100) if total > 0 else 0\n        }\n\n    return comparison\n```\n\n### Pattern 4: Cross-Database Lookup\n\nLink data across multiple endpoints:\n\n```python\ndef comprehensive_device_lookup(fda, device_name):\n    \"\"\"Look up device across all relevant databases.\"\"\"\n\n    return {\n        \"adverse_events\": fda.query_device_events(device_name, limit=10),\n        \"510k_clearances\": fda.query_device_510k(device_name=device_name),\n        \"recalls\": fda.query(\"device\", \"enforcement\",\n                           search=f\"product_description:*{device_name}*\"),\n        \"udi_info\": fda.query(\"device\", \"udi\",\n                            search=f\"brand_name:*{device_name}*\")\n    }\n```\n\n## Working with Results\n\n### Response Structure\n\nAll API responses follow this structure:\n\n```python\n{\n    \"meta\": {\n        \"disclaimer\": \"...\",\n        \"results\": {\n            \"skip\": 0,\n            \"limit\": 100,\n            \"total\": 15234\n        }\n    },\n    \"results\": [\n        # Array of result objects\n    ]\n}\n```\n\n### Error Handling\n\nAlways handle potential errors:\n\n```python\nresult = fda.query_drug_events(\"aspirin\", limit=10)\n\nif \"error\" in result:\n    print(f\"Error: {result['error']}\")\nelif \"results\" not in result or len(result[\"results\"]) == 0:\n    print(\"No results found\")\nelse:\n    # Process results\n    for event in result[\"results\"]:\n        # Handle event data\n        pass\n```\n\n### Pagination\n\nFor large result sets, use pagination:\n\n```python\n# Automatic pagination\nall_results = fda.query_all(\n    \"drug\", \"event\",\n    search=\"patient.drug.medicinalproduct:aspirin\",\n    max_results=5000\n)\n\n# Manual pagination\nfor skip in range(0, 1000, 100):\n    batch = fda.query(\"drug\", \"event\",\n                     search=\"...\",\n                     limit=100,\n                     skip=skip)\n    # Process batch\n```\n\n## Best Practices\n\n### 1. Use Specific Searches\n\n**DO:**\n```python\n# Specific field search\nsearch=\"patient.drug.medicinalproduct:aspirin\"\n```\n\n**DON'T:**\n```python\n# Overly broad wildcard\nsearch=\"*aspirin*\"\n```\n\n### 2. Implement Rate Limiting\n\nThe `FDAQuery` class handles rate limiting automatically, but be aware of limits:\n- 240 requests per minute\n- 120,000 requests per day (with API key)\n\n### 3. Cache Frequently Accessed Data\n\nThe `FDAQuery` class includes built-in caching (enabled by default):\n\n```python\n# Caching is automatic\nfda = FDAQuery(api_key=api_key, use_cache=True, cache_ttl=3600)\n```\n\n### 4. Use Exact Matching for Counting\n\nWhen counting\u002Faggregating, use `.exact` suffix:\n\n```python\n# Count exact phrases\nfda.count_by_field(\"drug\", \"event\",\n                  search=\"...\",\n                  field=\"patient.reaction.reactionmeddrapt\",\n                  exact=True)  # Adds .exact automatically\n```\n\n### 5. Validate Input Data\n\nClean and validate search terms:\n\n```python\ndef clean_drug_name(name):\n    \"\"\"Clean drug name for query.\"\"\"\n    return name.strip().replace('\"', '\\\\\"')\n\ndrug_name = clean_drug_name(user_input)\n```\n\n## API Reference\n\nFor detailed information about:\n- **Authentication and rate limits** → See `references\u002Fapi_basics.md`\n- **Drug databases** → See `references\u002Fdrugs.md`\n- **Device databases** → See `references\u002Fdevices.md`\n- **Food databases** → See `references\u002Ffoods.md`\n- **Animal\u002Fveterinary databases** → See `references\u002Fanimal_veterinary.md`\n- **Substance databases** → See `references\u002Fother.md`\n\n## Scripts\n\n### `scripts\u002Ffda_query.py`\n\nMain query module with `FDAQuery` class providing:\n- Unified interface to all FDA endpoints\n- Automatic rate limiting and caching\n- Error handling and retry logic\n- Common query patterns\n\n### `scripts\u002Ffda_examples.py`\n\nComprehensive examples demonstrating:\n- Drug safety profile analysis\n- Device surveillance monitoring\n- Food recall tracking\n- Substance lookup\n- Comparative drug analysis\n- Veterinary drug analysis\n\nRun examples:\n```bash\npython scripts\u002Ffda_examples.py\n```\n\n## Additional Resources\n\n- **openFDA Homepage**: https:\u002F\u002Fopen.fda.gov\u002F\n- **API Documentation**: https:\u002F\u002Fopen.fda.gov\u002Fapis\u002F\n- **Interactive API Explorer**: https:\u002F\u002Fopen.fda.gov\u002Fapis\u002Ftry-the-api\u002F\n- **GitHub Repository**: https:\u002F\u002Fgithub.com\u002FFDA\u002Fopenfda\n- **Terms of Service**: https:\u002F\u002Fopen.fda.gov\u002Fterms\u002F\n\n## Support and Troubleshooting\n\n### Common Issues\n\n**Issue**: Rate limit exceeded\n- **Solution**: Use API key, implement delays, or reduce request frequency\n\n**Issue**: No results found\n- **Solution**: Try broader search terms, check spelling, use wildcards\n\n**Issue**: Invalid query syntax\n- **Solution**: Review query syntax in `references\u002Fapi_basics.md`\n\n**Issue**: Missing fields in results\n- **Solution**: Not all records contain all fields; always check field existence\n\n### Getting Help\n\n- **GitHub Issues**: https:\u002F\u002Fgithub.com\u002FFDA\u002Fopenfda\u002Fissues\n- **Email**: open-fda@fda.hhs.gov\n","# FDA Database Access\n\n## Overview\n\nAccess comprehensive FDA regulatory data through openFDA, the FDA's initiative to provide open APIs for public datasets. Query information about drugs, medical devices, foods, animal\u002Fveterinary products, and substances using Python with standardized interfaces.\n\n**Key capabilities:**\n- Query adverse events for drugs, devices, foods, and veterinary products\n- Access product labeling, approvals, and regulatory submissions\n- Monitor recalls and enforcement actions\n- Look up National Drug Codes (NDC) and substance identifiers (UNII)\n- Analyze device classifications and clearances (510k, PMA)\n- Track drug shortages and supply issues\n- Research chemical structures and substance relationships\n\n## When to Use This Skill\n\nThis skill should be used when working with:\n- **Drug research**: Safety profiles, adverse events, labeling, approvals, shortages\n- **Medical device surveillance**: Adverse events, recalls, 510(k) clearances, PMA approvals\n- **Food safety**: Recalls, allergen tracking, adverse events, dietary supplements\n- **Veterinary medicine**: Animal drug adverse events by species and breed\n- **Chemical\u002Fsubstance data**: UNII lookup, CAS number mapping, molecular structures\n- **Regulatory analysis**: Approval pathways, enforcement actions, compliance tracking\n- **Pharmacovigilance**: Post-market surveillance, safety signal detection\n- **Scientific research**: Drug interactions, comparative safety, epidemiological studies\n\n## Quick Start\n\n### 1. Basic Setup\n\n```python\nfrom scripts.fda_query import FDAQuery\n\n# Initialize (API key optional but recommended)\nfda = FDAQuery(api_key=\"YOUR_API_KEY\")\n\n# Query drug adverse events\nevents = fda.query_drug_events(\"aspirin\", limit=100)\n\n# Get drug labeling\nlabel = fda.query_drug_label(\"Lipitor\", brand=True)\n\n# Search device recalls\nrecalls = fda.query(\"device\", \"enforcement\",\n                   search=\"classification:Class+I\",\n                   limit=50)\n```\n\n### 2. API Key Setup\n\nWhile the API works without a key, registering provides higher rate limits:\n- **Without key**: 240 requests\u002Fmin, 1,000\u002Fday\n- **With key**: 240 requests\u002Fmin, 120,000\u002Fday\n\nRegister at: https:\u002F\u002Fopen.fda.gov\u002Fapis\u002Fauthentication\u002F\n\nSet as environment variable:\n```bash\nexport FDA_API_KEY=\"your_key_here\"\n```\n\n### 3. Running Examples\n\n```bash\n# Run comprehensive examples\npython scripts\u002Ffda_examples.py\n\n# This demonstrates:\n# - Drug safety profiles\n# - Device surveillance\n# - Food recall monitoring\n# - Substance lookup\n# - Comparative drug analysis\n# - Veterinary drug analysis\n```\n\n## FDA Database Categories\n\n### Drugs\n\nAccess 6 drug-related endpoints covering the full drug lifecycle from approval to post-market surveillance.\n\n**Endpoints:**\n1. **Adverse Events** - Reports of side effects, errors, and therapeutic failures\n2. **Product Labeling** - Prescribing information, warnings, indications\n3. **NDC Directory** - National Drug Code product information\n4. **Enforcement Reports** - Drug recalls and safety actions\n5. **Drugs@FDA** - Historical approval data since 1939\n6. **Drug Shortages** - Current and resolved supply issues\n\n**Common use cases:**\n```python\n# Safety signal detection\nfda.count_by_field(\"drug\", \"event\",\n                  search=\"patient.drug.medicinalproduct:metformin\",\n                  field=\"patient.reaction.reactionmeddrapt\")\n\n# Get prescribing information\nlabel = fda.query_drug_label(\"Keytruda\", brand=True)\n\n# Check for recalls\nrecalls = fda.query_drug_recalls(drug_name=\"metformin\")\n\n# Monitor shortages\nshortages = fda.query(\"drug\", \"drugshortages\",\n                     search=\"status:Currently+in+Shortage\")\n```\n\n**Reference:** See `references\u002Fdrugs.md` for detailed documentation\n\n### Devices\n\nAccess 9 device-related endpoints covering medical device safety, approvals, and registrations.\n\n**Endpoints:**\n1. **Adverse Events** - Device malfunctions, injuries, deaths\n2. **510(k) Clearances** - Premarket notifications\n3. **Classification** - Device categories and risk classes\n4. **Enforcement Reports** - Device recalls\n5. **Recalls** - Detailed recall information\n6. **PMA** - Premarket approval data for Class III devices\n7. **Registrations & Listings** - Manufacturing facility data\n8. **UDI** - Unique Device Identification database\n9. **COVID-19 Serology** - Antibody test performance data\n\n**Common use cases:**\n```python\n# Monitor device safety\nevents = fda.query_device_events(\"pacemaker\", limit=100)\n\n# Look up device classification\nclassification = fda.query_device_classification(\"DQY\")\n\n# Find 510(k) clearances\nclearances = fda.query_device_510k(applicant=\"Medtronic\")\n\n# Search by UDI\ndevice_info = fda.query(\"device\", \"udi\",\n                       search=\"identifiers.id:00884838003019\")\n```\n\n**Reference:** See `references\u002Fdevices.md` for detailed documentation\n\n### Foods\n\nAccess 2 food-related endpoints for safety monitoring and recalls.\n\n**Endpoints:**\n1. **Adverse Events** - Food, dietary supplement, and cosmetic events\n2. **Enforcement Reports** - Food product recalls\n\n**Common use cases:**\n```python\n# Monitor allergen recalls\nrecalls = fda.query_food_recalls(reason=\"undeclared peanut\")\n\n# Track dietary supplement events\nevents = fda.query_food_events(\n    industry=\"Dietary Supplements\")\n\n# Find contamination recalls\nlisteria = fda.query_food_recalls(\n    reason=\"listeria\",\n    classification=\"I\")\n```\n\n**Reference:** See `references\u002Ffoods.md` for detailed documentation\n\n### Animal & Veterinary\n\nAccess veterinary drug adverse event data with species-specific information.\n\n**Endpoint:**\n1. **Adverse Events** - Animal drug side effects by species, breed, and product\n\n**Common use cases:**\n```python\n# Species-specific events\ndog_events = fda.query_animal_events(\n    species=\"Dog\",\n    drug_name=\"flea collar\")\n\n# Breed predisposition analysis\nbreed_query = fda.query(\"animalandveterinary\", \"event\",\n    search=\"reaction.veddra_term_name:*seizure*+AND+\"\n           \"animal.breed.breed_component:*Labrador*\")\n```\n\n**Reference:** See `references\u002Fanimal_veterinary.md` for detailed documentation\n\n### Substances & Other\n\nAccess molecular-level substance data with UNII codes, chemical structures, and relationships.\n\n**Endpoints:**\n1. **Substance Data** - UNII, CAS, chemical structures, relationships\n2. **NSDE** - Historical substance data (legacy)\n\n**Common use cases:**\n```python\n# UNII to CAS mapping\nsubstance = fda.query_substance_by_unii(\"R16CO5Y76E\")\n\n# Search by name\nresults = fda.query_substance_by_name(\"acetaminophen\")\n\n# Get chemical structure\nstructure = fda.query(\"other\", \"substance\",\n    search=\"names.name:ibuprofen+AND+substanceClass:chemical\")\n```\n\n**Reference:** See `references\u002Fother.md` for detailed documentation\n\n## Common Query Patterns\n\n### Pattern 1: Safety Profile Analysis\n\nCreate comprehensive safety profiles combining multiple data sources:\n\n```python\ndef drug_safety_profile(fda, drug_name):\n    \"\"\"Generate complete safety profile.\"\"\"\n\n    # 1. Total adverse events\n    events = fda.query_drug_events(drug_name, limit=1)\n    total = events[\"meta\"][\"results\"][\"total\"]\n\n    # 2. Most common reactions\n    reactions = fda.count_by_field(\n        \"drug\", \"event\",\n        search=f\"patient.drug.medicinalproduct:*{drug_name}*\",\n        field=\"patient.reaction.reactionmeddrapt\",\n        exact=True\n    )\n\n    # 3. Serious events\n    serious = fda.query(\"drug\", \"event\",\n        search=f\"patient.drug.medicinalproduct:*{drug_name}*+AND+serious:1\",\n        limit=1)\n\n    # 4. Recent recalls\n    recalls = fda.query_drug_recalls(drug_name=drug_name)\n\n    return {\n        \"total_events\": total,\n        \"top_reactions\": reactions[\"results\"][:10],\n        \"serious_events\": serious[\"meta\"][\"results\"][\"total\"],\n        \"recalls\": recalls[\"results\"]\n    }\n```\n\n### Pattern 2: Temporal Trend Analysis\n\nAnalyze trends over time using date ranges:\n\n```python\nfrom datetime import datetime, timedelta\n\ndef get_monthly_trends(fda, drug_name, months=12):\n    \"\"\"Get monthly adverse event trends.\"\"\"\n    trends = []\n\n    for i in range(months):\n        end = datetime.now() - timedelta(days=30*i)\n        start = end - timedelta(days=30)\n\n        date_range = f\"[{start.strftime('%Y%m%d')}+TO+{end.strftime('%Y%m%d')}]\"\n        search = f\"patient.drug.medicinalproduct:*{drug_name}*+AND+receivedate:{date_range}\"\n\n        result = fda.query(\"drug\", \"event\", search=search, limit=1)\n        count = result[\"meta\"][\"results\"][\"total\"] if \"meta\" in result else 0\n\n        trends.append({\n            \"month\": start.strftime(\"%Y-%m\"),\n            \"events\": count\n        })\n\n    return trends\n```\n\n### Pattern 3: Comparative Analysis\n\nCompare multiple products side-by-side:\n\n```python\ndef compare_drugs(fda, drug_list):\n    \"\"\"Compare safety profiles of multiple drugs.\"\"\"\n    comparison = {}\n\n    for drug in drug_list:\n        # Total events\n        events = fda.query_drug_events(drug, limit=1)\n        total = events[\"meta\"][\"results\"][\"total\"] if \"meta\" in events else 0\n\n        # Serious events\n        serious = fda.query(\"drug\", \"event\",\n            search=f\"patient.drug.medicinalproduct:*{drug}*+AND+serious:1\",\n            limit=1)\n        serious_count = serious[\"meta\"][\"results\"][\"total\"] if \"meta\" in serious else 0\n\n        comparison[drug] = {\n            \"total_events\": total,\n            \"serious_events\": serious_count,\n            \"serious_rate\": (serious_count\u002Ftotal*100) if total > 0 else 0\n        }\n\n    return comparison\n```\n\n### Pattern 4: Cross-Database Lookup\n\nLink data across multiple endpoints:\n\n```python\ndef comprehensive_device_lookup(fda, device_name):\n    \"\"\"Look up device across all relevant databases.\"\"\"\n\n    return {\n        \"adverse_events\": fda.query_device_events(device_name, limit=10),\n        \"510k_clearances\": fda.query_device_510k(device_name=device_name),\n        \"recalls\": fda.query(\"device\", \"enforcement\",\n                           search=f\"product_description:*{device_name}*\"),\n        \"udi_info\": fda.query(\"device\", \"udi\",\n                            search=f\"brand_name:*{device_name}*\")\n    }\n```\n\n## Working with Results\n\n### Response Structure\n\nAll API responses follow this structure:\n\n```python\n{\n    \"meta\": {\n        \"disclaimer\": \"...\",\n        \"results\": {\n            \"skip\": 0,\n            \"limit\": 100,\n            \"total\": 15234\n        }\n    },\n    \"results\": [\n        # Array of result objects\n    ]\n}\n```\n\n### Error Handling\n\nAlways handle potential errors:\n\n```python\nresult = fda.query_drug_events(\"aspirin\", limit=10)\n\nif \"error\" in result:\n    print(f\"Error: {result['error']}\")\nelif \"results\" not in result or len(result[\"results\"]) == 0:\n    print(\"No results found\")\nelse:\n    # Process results\n    for event in result[\"results\"]:\n        # Handle event data\n        pass\n```\n\n### Pagination\n\nFor large result sets, use pagination:\n\n```python\n# Automatic pagination\nall_results = fda.query_all(\n    \"drug\", \"event\",\n    search=\"patient.drug.medicinalproduct:aspirin\",\n    max_results=5000\n)\n\n# Manual pagination\nfor skip in range(0, 1000, 100):\n    batch = fda.query(\"drug\", \"event\",\n                     search=\"...\",\n                     limit=100,\n                     skip=skip)\n    # Process batch\n```\n\n## Best Practices\n\n### 1. Use Specific Searches\n\n**DO:**\n```python\n# Specific field search\nsearch=\"patient.drug.medicinalproduct:aspirin\"\n```\n\n**DON'T:**\n```python\n# Overly broad wildcard\nsearch=\"*aspirin*\"\n```\n\n### 2. Implement Rate Limiting\n\nThe `FDAQuery` class handles rate limiting automatically, but be aware of limits:\n- 240 requests per minute\n- 120,000 requests per day (with API key)\n\n### 3. Cache Frequently Accessed Data\n\nThe `FDAQuery` class includes built-in caching (enabled by default):\n\n```python\n# Caching is automatic\nfda = FDAQuery(api_key=api_key, use_cache=True, cache_ttl=3600)\n```\n\n### 4. Use Exact Matching for Counting\n\nWhen counting\u002Faggregating, use `.exact` suffix:\n\n```python\n# Count exact phrases\nfda.count_by_field(\"drug\", \"event\",\n                  search=\"...\",\n                  field=\"patient.reaction.reactionmeddrapt\",\n                  exact=True)  # Adds .exact automatically\n```\n\n### 5. Validate Input Data\n\nClean and validate search terms:\n\n```python\ndef clean_drug_name(name):\n    \"\"\"Clean drug name for query.\"\"\"\n    return name.strip().replace('\"', '\\\\\"')\n\ndrug_name = clean_drug_name(user_input)\n```\n\n## API Reference\n\nFor detailed information about:\n- **Authentication and rate limits** → See `references\u002Fapi_basics.md`\n- **Drug databases** → See `references\u002Fdrugs.md`\n- **Device databases** → See `references\u002Fdevices.md`\n- **Food databases** → See `references\u002Ffoods.md`\n- **Animal\u002Fveterinary databases** → See `references\u002Fanimal_veterinary.md`\n- **Substance databases** → See `references\u002Fother.md`\n\n## Scripts\n\n### `scripts\u002Ffda_query.py`\n\nMain query module with `FDAQuery` class providing:\n- Unified interface to all FDA endpoints\n- Automatic rate limiting and caching\n- Error handling and retry logic\n- Common query patterns\n\n### `scripts\u002Ffda_examples.py`\n\nComprehensive examples demonstrating:\n- Drug safety profile analysis\n- Device surveillance monitoring\n- Food recall tracking\n- Substance lookup\n- Comparative drug analysis\n- Veterinary drug analysis\n\nRun examples:\n```bash\npython scripts\u002Ffda_examples.py\n```\n\n## Additional Resources\n\n- **openFDA Homepage**: https:\u002F\u002Fopen.fda.gov\u002F\n- **API Documentation**: https:\u002F\u002Fopen.fda.gov\u002Fapis\u002F\n- **Interactive API Explorer**: https:\u002F\u002Fopen.fda.gov\u002Fapis\u002Ftry-the-api\u002F\n- **GitHub Repository**: https:\u002F\u002Fgithub.com\u002FFDA\u002Fopenfda\n- **Terms of Service**: https:\u002F\u002Fopen.fda.gov\u002Fterms\u002F\n\n## Support and Troubleshooting\n\n### Common Issues\n\n**Issue**: Rate limit exceeded\n- **Solution**: Use API key, implement delays, or reduce request frequency\n\n**Issue**: No results found\n- **Solution**: Try broader search terms, check spelling, use wildcards\n\n**Issue**: Invalid query syntax\n- **Solution**: Review query syntax in `references\u002Fapi_basics.md`\n\n**Issue**: Missing fields in results\n- **Solution**: Not all records contain all fields; always check field existence\n\n### Getting Help\n\n- **GitHub Issues**: https:\u002F\u002Fgithub.com\u002FFDA\u002Fopenfda\u002Fissues\n- **Email**: open-fda@fda.hhs.gov\n",{"name":5,"description":7},"main","2b749c82b5d11fac39d9a6e021ce3f5b8a541bd1","cli-tool\u002Fcomponents\u002Fskills\u002Fscientific\u002Ffda-database",3963,"https:\u002F\u002Fgithub.com\u002Fdavila7\u002Fclaude-code-templates","https:\u002F\u002Faitmpl.com","https:\u002F\u002Fgithub.com\u002Fdavila7","https:\u002F\u002Fdanielavila.me","Building AI dev tools with LLMs","2026-11-15 01:32:48",{"source":9,"skillName":5,"commands":63,"prompt":73,"zipAvailable":74},[64,67,70],{"tool":65,"command":66},"npx","npx skills add davila7\u002Fclaude-code-templates --skill fda-database",{"tool":68,"command":69},"bunx","bunx skills add davila7\u002Fclaude-code-templates --skill fda-database",{"tool":71,"command":72},"pnpm","pnpm dlx skills add davila7\u002Fclaude-code-templates --skill fda-database","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fdavila7\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fscientific\u002Ffda-database\u002FSKILL.md",true,[76,82,86,90,94,98,102,108],{"path":77,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":80,"sourceHtmlUrl":81},"references\u002Fanimal_veterinary.md","REFERENCE","参考文档",11799,"https:\u002F\u002Fgithub.com\u002Fdavila7\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fscientific\u002Ffda-database\u002Freferences\u002Fanimal_veterinary.md",{"path":83,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":84,"sourceHtmlUrl":85},"references\u002Fapi_basics.md",15948,"https:\u002F\u002Fgithub.com\u002Fdavila7\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fscientific\u002Ffda-database\u002Freferences\u002Fapi_basics.md",{"path":87,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":88,"sourceHtmlUrl":89},"references\u002Fdevices.md",18934,"https:\u002F\u002Fgithub.com\u002Fdavila7\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fscientific\u002Ffda-database\u002Freferences\u002Fdevices.md",{"path":91,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":92,"sourceHtmlUrl":93},"references\u002Fdrugs.md",13903,"https:\u002F\u002Fgithub.com\u002Fdavila7\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fscientific\u002Ffda-database\u002Freferences\u002Fdrugs.md",{"path":95,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":96,"sourceHtmlUrl":97},"references\u002Ffoods.md",10789,"https:\u002F\u002Fgithub.com\u002Fdavila7\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fscientific\u002Ffda-database\u002Freferences\u002Ffoods.md",{"path":99,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":100,"sourceHtmlUrl":101},"references\u002Fother.md",13735,"https:\u002F\u002Fgithub.com\u002Fdavila7\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fscientific\u002Ffda-database\u002Freferences\u002Fother.md",{"path":103,"resourceType":104,"resourceTypeDesc":105,"sizeBytes":106,"sourceHtmlUrl":107},"scripts\u002Ffda_examples.py","SCRIPT","脚本",10785,"https:\u002F\u002Fgithub.com\u002Fdavila7\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fscientific\u002Ffda-database\u002Fscripts\u002Ffda_examples.py",{"path":109,"resourceType":104,"resourceTypeDesc":105,"sizeBytes":110,"sourceHtmlUrl":111},"scripts\u002Ffda_query.py",15411,"https:\u002F\u002Fgithub.com\u002Fdavila7\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fscientific\u002Ffda-database\u002Fscripts\u002Ffda_query.py",[113,139,165,187,227,255],{"skillNo":114,"name":115,"nameZh":17,"description":116,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":117,"categories":118,"keywords":119,"publishedAt":47},"01M70NHBTQ8BV0A2SCAZXEPHCX","wealthville-pool-scoring","Score DeFi liquidity pools before providing liquidity. Returns a 0-100 pool score and an Enter\u002FHold\u002FExit\u002FReduce\u002FAvoid verdict with calibrated confidence for ~68,800 Solana pools and 575 EVM pools, plus a public miss-inclusive track record. Use when asked whether a pool is worth LPing into, which pools look best right now, or how accurate the scores have actually been.","https:\u002F\u002Fgithub.com\u002Fdavila7\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fweb-data\u002Fwealthville-pool-scoring\u002FSKILL.md",[],[120,121,122,123,124,46,125,126,127,128,129,130,131,132,133,134,135,136,137,138],"scoring","pool","wealthville pool scoring","liquidity","which","exit","now","use","when","reduce","with","record","track","verdict","evm","solana","how","public","look",{"skillNo":140,"name":141,"nameZh":17,"description":142,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":143,"categories":144,"keywords":145,"publishedAt":47},"01M70MB6VR8ERJ4EM8D5KHBMEV","technical-debt-auditor","Scans a codebase and produces a quantified technical debt report with a prioritized remediation plan. Analyzes dead code, TODO\u002FFIXME\u002FHACK markers, dependency staleness, complexity hotspots, code duplication signals, test coverage gaps, unused exports, and outdated patterns. Use this skill when the user asks to audit their codebase for tech debt, wants a health check of their code quality, says things like \"where should I focus refactoring\", \"find code smells\", \"audit my codebase\", \"what technical debt do we have\", \"prioritize cleanup work\", or asks about code quality metrics. Also trigger when the user mentions \"code rot\", \"legacy cleanup\", \"refactoring priorities\", or wants to understand the overall health of a project before a major effort. Trigger even if the user doesn't say \"technical debt\" explicitly — any request to systematically assess code quality and identify improvement priorities belongs here.","https:\u002F\u002Fgithub.com\u002Fdavila7\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fdevelopment\u002Ftechnical-debt-auditor\u002FSKILL.md",[],[146,147,148,149,150,151,152,153,154,155,156,128,157,158,159,160,161,162,163,164],"technical debt","debt","technical","technical debt auditor","auditor","coverage","complexity","markers","project","cleanup","unused","code","todo","work","plan","focus","signals","audit","dependency",{"skillNo":166,"name":167,"nameZh":17,"description":168,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":169,"categories":170,"keywords":171,"publishedAt":47},"01M70KPYH9QNHCNME5GJQGE22K","readonly-sql-guard","Make an agent's database access provably read-only. Use when an agent runs caller-supplied SQL against a production\u002FERP\u002Fanalytics database (a \"query\" MCP tool, text-to-SQL, an admin console), or when reviewing DB-access code for write\u002FDDL\u002Fside-effect\u002Ftransaction-escape risks. Checks what a statement CALLS, not just its shape.","https:\u002F\u002Fgithub.com\u002Fdavila7\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fdatabase\u002Freadonly-sql-guard\u002FSKILL.md",[],[172,173,174,175,176,177,178,46,179,180,181,182,183,184,185,127,186,31,128,42],"readonly","guard","sql guard","sql","readonly sql guard","erp","effect","read-only","db","just","tool","calls","only","MCP","access",{"skillNo":188,"name":189,"nameZh":190,"description":191,"descriptionZh":192,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":193,"licenseFileUrl":194,"sourceHtmlUrl":195,"categories":196,"keywords":203,"publishedAt":47},"01M6AFY6F7CC2BBZP1QD6VTNVC","web-artifacts-builder","Claude 网页 Artifact 构建","Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn\u002Fui). Use for complex artifacts requiring state management, routing, or shadcn\u002Fui components - not for simple single-file HTML\u002FJSX artifacts.","用于创建精细的、多组件的 claude.ai HTML artifact 的工具套件，采用现代前端 Web 技术（React、Tailwind CSS、shadcn\u002Fui）。适用于需要状态管理、路由或 shadcn\u002Fui 组件的复杂 artifact —— 不适用于简单的单文件 HTML\u002FJSX artifact。","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fdavila7\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Futilities\u002Fweb-artifacts-builder\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fdavila7\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Futilities\u002Fweb-artifacts-builder\u002FSKILL.md",[197,200],{"categoryNo":198,"categoryName":199,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师",{"categoryNo":201,"categoryName":202,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BRASNPVNJVQQJ4KZX8XM5D","前端开发与界面实现",[204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,46,226],"artifacts builder","web","web artifacts builder","artifacts","builder","state","routing","state management","component","css","frontend","ui","Tools","file","components","shadcn","react","Tailwind","suite","jsx","html","single-file","ui components",{"skillNo":228,"name":229,"nameZh":230,"description":231,"descriptionZh":232,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":193,"licenseFileUrl":233,"sourceHtmlUrl":234,"categories":235,"keywords":242,"publishedAt":47},"01M6AFWF33SFV9Z3SF4PEEE4BF","webapp-testing","Playwright Web 应用测试","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.","使用 Playwright 与本地 Web 应用进行交互和测试的工具包。支持验证前端功能、调试 UI 行为、捕获浏览器截图以及查看浏览器日志。","https:\u002F\u002Fgithub.com\u002Fdavila7\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fsecurity\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fdavila7\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fsecurity\u002Fwebapp-testing\u002FSKILL.md",[236,239],{"categoryNo":237,"categoryName":238,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQGD5WG86P4AQ5GPSSKBFR","测试工程师",{"categoryNo":240,"categoryName":241,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQJH394GT47X57A9Q8G7HX","测试与质量保障",[243,244,245,246,247,205,248,214,215,249,250,251,252,46,253,130,254],"webapp testing","testing","webapp","browser","playwright","applications","debugging","toolkit","logs","screenshots","local","behavior",{"skillNo":256,"name":257,"nameZh":258,"description":259,"descriptionZh":260,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":193,"licenseFileUrl":261,"sourceHtmlUrl":262,"categories":263,"keywords":270,"publishedAt":47},"01M6AF67Q67JJJ5V51JR2P52KA","discernment-nudge","回复事实核查追问","After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals, or emails, estimates or projections, analysis or interpretation of data, factual claims they may rely on, or a multi-step argument — invoke this skill BEFORE finalizing your reply and then, if it applies, append 2-3 short follow-up questions, each tied to something specific in what you just produced, that help the user check key facts, probe the reasoning or assumptions, and notice missing context. Do this at most once per conversation. Skip it when the user asked a trivial how-to or simple lookup, wants a purely educational explanation, asked you only to format, convert, or assemble a file from content they provided, is writing code they will run, is doing creative writing or casual chat, or already asked you to double-check, cite, or review — the skill file explains these boundaries and the exact output format.","在你给出用户可能据以行动的实质性答案或草稿之后——建议或推荐、起草的工件（如目标、计划、推介、提案或电子邮件）、估计或预测、数据分析或解读、他们可能依赖的事实声明，或多步骤论证——在最终确定回复之前调用本技能，然后，如适用，附加 2-3 个简短的后续问题，每个问题都与你刚刚产出的具体内容相关，帮助用户核查关键事实、探究推理或假设，并注意到缺失的上下文。每次对话最多执行一次。当用户询问琐碎的操作方法或简单查找、想要纯教育性解释、仅要求根据提供的内容格式化\u002F转换\u002F组装文件、正在编写将要运行的代码、正在进行创意写作或休闲聊天，或已经要求你复核、引用或审查时跳过——技能文件解释了这些边界和确切的输出格式。","https:\u002F\u002Fgithub.com\u002Fdavila7\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fproductivity\u002Fdiscernment-nudge\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fdavila7\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fproductivity\u002Fdiscernment-nudge\u002FSKILL.md",[264,267],{"categoryNo":265,"categoryName":266,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TMSBZZX4V1THHNVC815","回答复核",{"categoryNo":268,"categoryName":269,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BS5011KJDVSRXG1DC4P666","普通用户",[271,272,273,274,275,276,36,277,207,278,217,157,279,280,281,282,283,184,284,128,285,39,286,287,288,136,289],"discernment nudge","nudge","interpretation","help","run","reasoning","writing","lookup","content","review","conversation","short","up","invoke","you","claims","argument","assemble","recommendations"]