forge-discover: Project discovery
Engine: Forge native
Purpose
Build an evidence-backed application profile and architecture map before any specialized audit begins.
Resolve and read ../fullstack-forge/references/shared/module-contract.md (applicability,
execution, mutation, verification, completion) and
../fullstack-forge/references/shared/evidence-rules.md (statuses, standards, tools, findings via
../fullstack-forge/references/PROTOCOL.md) relative to this module SKILL.md before reporting.
Never hide failed checks or claim that an operation ran when it did not.
Automatic activation signals
Activate when a request or direct repository evidence involves project discovery, when
the user explicitly names forge-discover, or when discovery proves an applicable boundary.
- Every repository audit
- A changed monorepo layout or deployment model
When not to activate
- A report-only replay with an unchanged, still-valid profile
Automated support
Relevant discovery inputs are:
- repository root
- version-control status
- package and workspace manifests
Deterministic support, bounded evidence only:
detect-stack
discover-project
inspect-env-template
inspect-platform-skills
Agent inspection procedure
- Enumerate workspace manifests, lockfiles, and entry points, and record every application root with its package manager and language evidence.
- Map executable surfaces: HTTP routes, background workers, scheduled jobs, CLIs, and build outputs, each with a file citation.
- Identify data boundaries: databases, ORMs, migrations, caches, queues, object storage, and external providers from configuration and dependency evidence.
- Identify identity boundaries: authentication providers, session mechanisms, roles, and tenant markers, distinguishing declared dependencies from wired code paths.
- Write
.forge/project-profile.json and .forge/architecture-map.md with a confidence level and file evidence for every detection, and flag low-confidence guesses for manual confirmation.
Manual inspection requirements:
- Confirm ambiguous service boundaries and critical user workflows
- Compare detected deployment topology with operator documentation
Stack-specific guidance:
- Prefer native workspace commands and manifest semantics for the detected package manager
Evidence to collect
Standards used as criteria:
- Agent Skills Specification
- C4 model concepts
Common production failures
- Detect languages, frameworks, package managers, applications, data stores, queues, providers, tests, CI, and deployment files
- Map public, private, admin, tenant, upload, payment, and AI boundaries with file evidence
- Record a confidence level and evidence list for every detected capability
Missing-control checks
Each item needs direct evidence or one reasoned status.
- Languages
- Frameworks
- Monorepo layout
- Package managers
- Frontend applications
- Backend applications
- Mobile applications
- Desktop applications
- Databases
- ORMs
- Authentication provider
- Session implementation
- Hosting platform
- Object storage
- File-upload pipeline
- Caching and Redis
- Queues
- Scheduled jobs
- Tests
- CI/CD
- Observability
- External integrations
- AI providers
- Payment providers
- Public routes
- Private routes
- Admin routes
- User roles
- Tenant boundaries
- Critical workflows
- Environment templates
- Deployment configuration
- Confidence and file evidence for every detected technology
- Current .forge/project-profile.json and .forge/architecture-map.md outputs
Commands and tools
- Run
forge discover audit --json or fullstack-forge discover audit --json when
an explicit audit is requested and the CLI is installed. Normal feature work does not require it.
Safe fixes
- Create missing local .forge report directories
- Normalize a stale generated profile after discovery
Approval-required changes
- Changing application boundaries or deployment topology
- Enabling a provider inferred only from dormant code
Verification
- Validate project-profile.json against its schema
- Trace every architecture-map node back to profile evidence
Completion contract
Follow fullstack-forge/references/shared/completion.md and the limitations below.
Known limitations
- Runtime-only infrastructure may remain NOT_VERIFIED without operator access
1---2name: forge-discover-33description: Build an evidence-backed application profile and architecture map before any specialized audit begins.4---56# forge-discover: Project discovery78Engine: Forge native910## Purpose1112Build an evidence-backed application profile and architecture map before any specialized audit begins.13141516Resolve and read `../fullstack-forge/references/shared/module-contract.md` (applicability,17execution, mutation, verification, completion) and18`../fullstack-forge/references/shared/evidence-rules.md` (statuses, standards, tools, findings via19`../fullstack-forge/references/PROTOCOL.md`) relative to this module `SKILL.md` before reporting.2021Never hide failed checks or claim that an operation ran when it did not.2223## Automatic activation signals2425Activate when a request or direct repository evidence involves project discovery, when26the user explicitly names `forge-discover`, or when discovery proves an applicable boundary.2728- Every repository audit29- A changed monorepo layout or deployment model3031## When not to activate3233- A report-only replay with an unchanged, still-valid profile3435## Automated support3637Relevant discovery inputs are:3839- repository root40- version-control status41- package and workspace manifests4243Deterministic support, bounded evidence only:4445- `detect-stack`46- `discover-project`47- `inspect-env-template`48- `inspect-platform-skills`4950## Agent inspection procedure51521. Enumerate workspace manifests, lockfiles, and entry points, and record every application root with its package manager and language evidence.532. Map executable surfaces: HTTP routes, background workers, scheduled jobs, CLIs, and build outputs, each with a file citation.543. Identify data boundaries: databases, ORMs, migrations, caches, queues, object storage, and external providers from configuration and dependency evidence.554. Identify identity boundaries: authentication providers, session mechanisms, roles, and tenant markers, distinguishing declared dependencies from wired code paths.565. Write `.forge/project-profile.json` and `.forge/architecture-map.md` with a confidence level and file evidence for every detection, and flag low-confidence guesses for manual confirmation.5758Manual inspection requirements:5960- Confirm ambiguous service boundaries and critical user workflows61- Compare detected deployment topology with operator documentation6263Stack-specific guidance:6465- Prefer native workspace commands and manifest semantics for the detected package manager6667## Evidence to collect6869Standards used as criteria:7071- Agent Skills Specification72- C4 model concepts7374## Common production failures7576- Detect languages, frameworks, package managers, applications, data stores, queues, providers, tests, CI, and deployment files77- Map public, private, admin, tenant, upload, payment, and AI boundaries with file evidence78- Record a confidence level and evidence list for every detected capability7980## Missing-control checks8182Each item needs direct evidence or one reasoned status.8384- Languages85- Frameworks86- Monorepo layout87- Package managers88- Frontend applications89- Backend applications90- Mobile applications91- Desktop applications92- Databases93- ORMs94- Authentication provider95- Session implementation96- Hosting platform97- Object storage98- File-upload pipeline99- Caching and Redis100- Queues101- Scheduled jobs102- Tests103- CI/CD104- Observability105- External integrations106- AI providers107- Payment providers108- Public routes109- Private routes110- Admin routes111- User roles112- Tenant boundaries113- Critical workflows114- Environment templates115- Deployment configuration116- Confidence and file evidence for every detected technology117- Current .forge/project-profile.json and .forge/architecture-map.md outputs118119## Commands and tools120121- Run `forge discover audit --json` or `fullstack-forge discover audit --json` when122 an explicit audit is requested and the CLI is installed. Normal feature work does not require it.123124## Safe fixes125126- Create missing local .forge report directories127- Normalize a stale generated profile after discovery128129## Approval-required changes130131- Changing application boundaries or deployment topology132- Enabling a provider inferred only from dormant code133134## Verification135136- Validate project-profile.json against its schema137- Trace every architecture-map node back to profile evidence138139## Completion contract140141Follow `fullstack-forge/references/shared/completion.md` and the limitations below.142143## Known limitations144145- Runtime-only infrastructure may remain NOT_VERIFIED without operator access