Files
skill-seekers-reference/pyproject.toml
yusyus 0d664785f7 feat: Add C3.1 Design Pattern Detection - Detect 10 patterns across 9 languages
Implements comprehensive design pattern detection system for codebases,
enabling automatic identification of common GoF patterns with confidence
scoring and language-specific adaptations.

**Key Features:**
- 10 Design Patterns: Singleton, Factory, Observer, Strategy, Decorator,
  Builder, Adapter, Command, Template Method, Chain of Responsibility
- 3 Detection Levels: Surface (naming), Deep (structure), Full (behavior)
- 9 Language Support: Python (AST-based), JavaScript, TypeScript, C++, C,
  C#, Go, Rust, Java (regex-based), with Ruby/PHP basic support
- Language Adaptations: Python @decorator, Go sync.Once, Rust lazy_static
- Confidence Scoring: 0.0-1.0 scale with evidence tracking

**Architecture:**
- Base Classes: PatternInstance, PatternReport, BasePatternDetector
- Pattern Detectors: 10 specialized detectors with 3-tier detection
- Language Adapter: Language-specific confidence adjustments
- CodeAnalyzer Integration: Reuses existing parsing infrastructure

**CLI & Integration:**
- CLI Tool: skill-seekers-patterns --file src/db.py --depth deep
- Codebase Scraper: --detect-patterns flag for full codebase analysis
- MCP Tool: detect_patterns for Claude Code integration
- Output Formats: JSON and human-readable with pattern summaries

**Testing:**
- 24 comprehensive tests (100% passing in 0.30s)
- Coverage: All 10 patterns, multi-language support, edge cases
- Integration tests: CLI, codebase scraper, pattern recognition
- No regressions: 943/943 existing tests still pass

**Documentation:**
- docs/PATTERN_DETECTION.md: Complete user guide (514 lines)
- API reference, usage examples, language support matrix
- Accuracy benchmarks: 87% precision, 80% recall
- Troubleshooting guide and integration examples

**Files Changed:**
- Created: pattern_recognizer.py (1,869 lines), test suite (467 lines)
- Modified: codebase_scraper.py, MCP tools, servers, CHANGELOG.md
- Added: CLI entry point in pyproject.toml

**Performance:**
- Surface: ~200 classes/sec, <5ms per class
- Deep: ~100 classes/sec, ~10ms per class (default)
- Full: ~50 classes/sec, ~20ms per class

**Bug Fixes:**
- Fixed missing imports (argparse, json, sys) in pattern_recognizer.py
- Fixed pyproject.toml dependency duplication (removed dev from optional-dependencies)

**Roadmap:**
- Completes C3.1 from FLEXIBLE_ROADMAP.md
- Foundation for C3.2-C3.5 (usage examples, how-to guides, config patterns)

Closes #117 (C3.1 Design Pattern Detection)

Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
🤖 Generated with [Claude Code](https://claude.com/claude-code)
2026-01-03 19:56:09 +03:00

172 lines
4.4 KiB
TOML

[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "skill-seekers"
version = "2.5.2"
description = "Convert documentation websites, GitHub repositories, and PDFs into Claude AI skills"
readme = "README.md"
requires-python = ">=3.10"
license = {text = "MIT"}
authors = [
{name = "Yusuf Karaaslan"}
]
keywords = [
"claude",
"ai",
"documentation",
"scraping",
"skills",
"llm",
"mcp",
"automation"
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Software Development :: Documentation",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Text Processing :: Markup :: Markdown",
]
# Core dependencies
dependencies = [
"requests>=2.32.5",
"beautifulsoup4>=4.14.2",
"PyGithub>=2.5.0",
"GitPython>=3.1.40",
"mcp>=1.25,<2",
"httpx>=0.28.1",
"httpx-sse>=0.4.3",
"PyMuPDF>=1.24.14",
"Pillow>=11.0.0",
"pytesseract>=0.3.13",
"pydantic>=2.12.3",
"pydantic-settings>=2.11.0",
"python-dotenv>=1.1.1",
"jsonschema>=4.25.1",
"click>=8.3.0",
"Pygments>=2.19.2",
"pathspec>=0.12.1",
"networkx>=3.0",
]
[project.optional-dependencies]
# MCP server dependencies (included by default, but optional)
mcp = [
"mcp>=1.25,<2",
"httpx>=0.28.1",
"httpx-sse>=0.4.3",
"uvicorn>=0.38.0",
"starlette>=0.48.0",
"sse-starlette>=3.0.2",
]
# LLM platform-specific dependencies
# Google Gemini support
gemini = [
"google-generativeai>=0.8.0",
]
# OpenAI ChatGPT support
openai = [
"openai>=1.0.0",
]
# All LLM platforms combined
all-llms = [
"google-generativeai>=0.8.0",
"openai>=1.0.0",
]
# All optional dependencies combined (dev dependencies now in [dependency-groups])
all = [
"mcp>=1.25,<2",
"httpx>=0.28.1",
"httpx-sse>=0.4.3",
"uvicorn>=0.38.0",
"starlette>=0.48.0",
"sse-starlette>=3.0.2",
"google-generativeai>=0.8.0",
"openai>=1.0.0",
]
[project.urls]
Homepage = "https://github.com/yusufkaraaslan/Skill_Seekers"
Repository = "https://github.com/yusufkaraaslan/Skill_Seekers"
"Bug Tracker" = "https://github.com/yusufkaraaslan/Skill_Seekers/issues"
Documentation = "https://github.com/yusufkaraaslan/Skill_Seekers#readme"
[project.scripts]
# Main unified CLI
skill-seekers = "skill_seekers.cli.main:main"
# Individual tool entry points
skill-seekers-scrape = "skill_seekers.cli.doc_scraper:main"
skill-seekers-github = "skill_seekers.cli.github_scraper:main"
skill-seekers-pdf = "skill_seekers.cli.pdf_scraper:main"
skill-seekers-unified = "skill_seekers.cli.unified_scraper:main"
skill-seekers-enhance = "skill_seekers.cli.enhance_skill_local:main"
skill-seekers-package = "skill_seekers.cli.package_skill:main"
skill-seekers-upload = "skill_seekers.cli.upload_skill:main"
skill-seekers-estimate = "skill_seekers.cli.estimate_pages:main"
skill-seekers-install = "skill_seekers.cli.install_skill:main"
skill-seekers-install-agent = "skill_seekers.cli.install_agent:main"
skill-seekers-codebase = "skill_seekers.cli.codebase_scraper:main"
skill-seekers-patterns = "skill_seekers.cli.pattern_recognizer:main"
[tool.setuptools]
package-dir = {"" = "src"}
[tool.setuptools.packages.find]
where = ["src"]
include = ["skill_seekers*"]
namespaces = false
[tool.setuptools.package-data]
skill_seekers = ["py.typed"]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = "-v --tb=short --strict-markers"
markers = [
"asyncio: mark test as an async test",
"slow: mark test as slow running",
]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
[tool.coverage.run]
source = ["src/skill_seekers"]
omit = ["*/tests/*", "*/__pycache__/*", "*/venv/*"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"@abstractmethod",
]
[dependency-groups]
dev = [
"pytest>=8.4.2",
"pytest-asyncio>=0.24.0",
"pytest-cov>=7.0.0",
"coverage>=7.11.0",
]