project-fingerprinting

v2026.09.25

Deep project fingerprinting for tech stack detection, architecture analysis, and quality assessment

GitHub
安装命令
npx skhub add thelobbi/project-fingerprinting
Markdown
SKILL.md

Project Fingerprinting Skill

Comprehensive project fingerprinting system that builds a multi-dimensional profile of any codebase. Used by the upgrade council to give specialist agents targeted context, eliminating irrelevant analysis and enabling framework-specific recommendations.

Fingerprint Schema

fingerprint:
  # Core identity
  name: string           # from package.json name or directory
  language: string       # primary language
  languages: string[]    # all detected languages

  # Framework detection
  frameworks:
    frontend: string[]   # react, vue, angular, svelte, next, nuxt, etc.
    backend: string[]    # express, fastapi, django, nestjs, flask, etc.
    meta: string[]       # next (fullstack), nuxt (fullstack), remix, etc.
    mobile: string[]     # react-native, flutter, expo, etc.

  # Infrastructure
  infrastructure:
    containerized: boolean
    container_tool: docker | podman | none
    orchestrated: boolean
    orchestrator: kubernetes | docker-compose | nomad | none
    ci_cd: github-actions | gitlab-ci | jenkins | circle-ci | azure-pipelines | none
    cloud: aws | gcp | azure | vercel | netlify | none
    iac: terraform | pulumi | cdk | cloudformation | none
    monitoring: prometheus | datadog | newrelic | none

  # Architecture
  architecture:
    pattern: monolith | monorepo | microservices | serverless | jamstack
    api_style: rest | graphql | grpc | trpc | mixed | none
    state_management: redux | zustand | jotai | recoil | mobx | context | pinia | vuex | none
    orm: prisma | drizzle | typeorm | sequelize | sqlalchemy | django-orm | none
    database: postgres | mysql | mongodb | sqlite | redis | none
    auth: nextauth | clerk | auth0 | keycloak | passport | custom | none
    monorepo_tool: nx | turborepo | lerna | pnpm-workspaces | none

  # Quality signals
  quality:
    typescript:
      enabled: boolean
      strict: boolean
      strict_null_checks: boolean
      no_implicit_any: boolean
    linter:
      tool: eslint | biome | none
      config_format: flat | legacy | none
    formatter:
      tool: prettier | biome | none
    testing:
      framework: jest | vitest | pytest | go-test | none
      coverage_configured: boolean
      e2e_framework: playwright | cypress | puppeteer | none
    pre_commit: husky | lefthook | pre-commit | none
    dependency_updates: dependabot | renovate | none

  # Scale metrics
  scale:
    file_count: number
    src_lines: number       # approximate
    dependency_count: number
    dev_dependency_count: number
    contributor_count: number  # from git log --format='%ae' | sort -u | wc -l
    commit_count_30d: number   # activity level
    age_days: number           # first commit to now

  # Package manager
  package_manager: npm | pnpm | yarn | bun | pip | cargo | go-mod | maven | gradle

Detection Rules

Language Detection (priority order)

CheckLanguageConfidence
tsconfig.json existsTypeScript0.95
*.ts files in src/TypeScript0.90
package.json exists (no TS)JavaScript0.85
pyproject.toml or requirements.txtPython0.95
go.modGo0.95
Cargo.tomlRust0.95
pom.xml or build.gradleJava/Kotlin0.90
*.rb + GemfileRuby0.90
*.cs + *.csprojC#0.90
*.swift + Package.swiftSwift0.90

Framework Detection (package.json dependencies)

DependencyFrameworkCategory
nextNext.jsmeta-framework
react, react-domReactfrontend
vueVue.jsfrontend
@angular/coreAngularfrontend
svelte, @sveltejs/kitSvelte/SvelteKitfrontend/meta
expressExpressbackend
fastifyFastifybackend
@nestjs/coreNestJSbackend
honoHonobackend
@remix-run/nodeRemixmeta-framework
astroAstrometa-framework
nuxtNuxtmeta-framework
gatsbyGatsbymeta-framework
react-nativeReact Nativemobile
expoExpomobile

Python Framework Detection (requirements/pyproject)

DependencyFramework
fastapiFastAPI
djangoDjango
flaskFlask
starletteStarlette
tornadoTornado
aiohttpaiohttp

Infrastructure Detection (file/directory patterns)

PatternInfrastructureType
DockerfileDockercontainer
docker-compose.ymlDocker Composeorchestrator
Chart.yamlHelmorchestrator
k8s/, kubernetes/Kubernetesorchestrator
.github/workflows/GitHub Actionsci_cd
.gitlab-ci.ymlGitLab CIci_cd
JenkinsfileJenkinsci_cd
terraform/, *.tfTerraformiac
Pulumi.yamlPulumiiac
vercel.jsonVercelcloud
netlify.tomlNetlifycloud
firebase.jsonFirebasecloud
serverless.ymlServerless FWcloud
fly.tomlFly.iocloud
render.yamlRendercloud

Quality Detection

CheckDetection
tsconfig.json → "strict": trueTypeScript strict mode
.eslintrc* or eslint.config.*ESLint configured
.prettierrc* or prettier.config.*Prettier configured
jest.config.* or vitest.config.*Test framework
.husky/ directoryPre-commit hooks
renovate.json or .github/dependabot.ymlAuto dependency updates
playwright.config.* or cypress.config.*E2E testing
biome.json or biome.jsoncBiome (lint + format)

Architecture Pattern Detection

SignalPattern
packages/ or apps/ directoryMonorepo
turbo.json or nx.jsonMonorepo (confirmed)
Multiple Dockerfiles + docker-compose.ymlMicroservices
serverless.yml + functions/Serverless
Single src/ with both API + UIMonolith
pages/ or app/ (Next.js) + api/Fullstack monolith

Quick Commands for Fingerprinting

# One-shot fingerprint collection script
echo "=== PACKAGE.JSON ===" && cat package.json 2>/dev/null | head -80
echo "=== TSCONFIG ===" && cat tsconfig.json 2>/dev/null | head -30
echo "=== DIR STRUCTURE ===" && ls -la src/ 2>/dev/null
echo "=== KEY FILES ===" && ls Dockerfile docker-compose.yml Chart.yaml .github/workflows/ 2>/dev/null
echo "=== GIT STATS ===" && git log --oneline --since='30 days ago' 2>/dev/null | wc -l
echo "=== CONTRIBUTORS ===" && git log --format='%ae' 2>/dev/null | sort -u | wc -l
echo "=== FILE COUNT ===" && find src/ -name '*.ts' -o -name '*.tsx' -o -name '*.py' -o -name '*.go' 2>/dev/null | wc -l
echo "=== LINE COUNT ===" && find src/ -name '*.ts' -o -name '*.tsx' 2>/dev/null | xargs wc -l 2>/dev/null | tail -1

Framework-Specific Signal Boosters

When a framework is detected, enable additional specialist checks:

Next.js Projects

  • Check for next/image usage (vs raw <img>)
  • Check for getServerSideProps vs getStaticProps (SSR vs SSG opportunities)
  • Check App Router vs Pages Router
  • Check for middleware usage
  • Check for ISR (Incremental Static Regeneration)

React SPA

  • Check for React.lazy + Suspense (code splitting)
  • Check for React.memo on frequently re-rendered components
  • Check for proper key usage in lists
  • Check for StrictMode enabled

Express/Fastify Backend

  • Check for middleware ordering (helmet, cors, compression)
  • Check for request validation (Zod, Joi, express-validator)
  • Check for rate limiting
  • Check for error handling middleware

FastAPI/Django

  • Check for async endpoint usage (FastAPI)
  • Check for Pydantic model usage
  • Check for middleware stack
  • Check for CORS configuration

Output

The fingerprint is passed to all council agents as context. It determines:

  1. Which specialist agents are most relevant to spawn
  2. Which detection patterns each specialist should focus on
  3. Framework-specific suggestions to consider
  4. Scale-appropriate recommendations (don't suggest enterprise patterns for a prototype)
发现
标签

此技能尚未发布标签。

版本
最新版本元数据

版本

v2026.09.25

发布时间

Sep 25, 2026

分类

未分类

许可证

MIT

源路径

plugins/upgrade-suggestion/skills/project-fingerprinting

默认分支

main

最新提交

2f1269c

Tree SHA

629e050