Add ontological concept extraction toolkit for codebase analysis #3
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Systematic extraction and cataloging of all conceptual entities across Python source and YAML configuration files to enable identification of ontological overload, redundant concepts, and naming inconsistencies.
Delivered
Extraction & Analysis
extract_ontology.py- AST-based Python parser + YAML parser extracting classes, functions, methods, protocols, dataclasses, and configuration hierarchiesanalyze_ontology.py- Duplicate detection, similarity analysis, complexity hotspot identificationexample_insights.py- Word frequency, pattern analysis, standardization opportunitiestest_ontology_tools.sh- Validation suiteData
ontology_concepts.json- 3,352 concepts from 385 files (105 Python, 280 YAML)Documentation
README_ONTOLOGY.md- Quick start and troubleshootingONTOLOGY_SUMMARY.md- Key findings and statisticsONTOLOGY_QUICKSTART.md- Query examples and Python APIONTOLOGY_ANALYSIS.md- Technical referenceKey Findings
Overload (102 instances)
__init__: 85 locations__call__: 18 locationsstep: 16 locationsComplexity Hotspots
motor_policies.py: 77 conceptsactions.py: 76 conceptsgraph_matching.py: 58 conceptsStandardization Targets
Usage
Each concept includes: name, description (type + docstring excerpt), and source file path.
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.