proagents 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -12
- package/lib/commands/init.js +122 -11
- package/package.json +1 -1
- package/proagents/PROAGENTS.md +54 -0
- package/proagents/README.md +17 -17
- package/proagents/WORKFLOW.md +110 -110
- package/proagents/active-features/README.md +9 -9
- package/proagents/adr/README.md +15 -15
- package/proagents/api-versioning/changelog-template.md +4 -4
- package/proagents/api-versioning/deprecation-workflow.md +6 -6
- package/proagents/api-versioning/versioning-strategy.md +5 -5
- package/proagents/automation/ai-behavior-rules.md +1 -1
- package/proagents/automation/auto-decisions.md +6 -6
- package/proagents/cache/README.md +1 -1
- package/proagents/changelog/README.md +16 -16
- package/proagents/changelog/entry-template.md +4 -4
- package/proagents/cli/README.md +1 -1
- package/proagents/cli/slash-commands.md +202 -202
- package/proagents/collaboration/sessions.md +6 -6
- package/proagents/config/integrations/README.md +1 -1
- package/proagents/contract-testing/README.md +5 -5
- package/proagents/contract-testing/schema-validation.md +6 -6
- package/proagents/cost/cost-template.md +6 -6
- package/proagents/cost/estimation-framework.md +5 -5
- package/proagents/database/migration-workflow.md +6 -6
- package/proagents/database/rollback-scripts.md +6 -6
- package/proagents/database/safety-checks.md +6 -6
- package/proagents/examples/backend-nodejs/workflow-example.md +1 -1
- package/proagents/examples/web-frontend-react/workflow-example.md +1 -1
- package/proagents/existing-projects/README.md +3 -3
- package/proagents/existing-projects/challenges.md +1 -1
- package/proagents/existing-projects/coexistence-mode.md +8 -8
- package/proagents/existing-projects/compatibility-assessment.md +12 -12
- package/proagents/existing-projects/gradual-adoption.md +14 -14
- package/proagents/existing-projects/migration-strategies.md +7 -7
- package/proagents/existing-projects/pattern-reconciliation.md +10 -10
- package/proagents/existing-projects/team-onboarding.md +23 -23
- package/proagents/existing-projects/technical-debt-handling.md +24 -24
- package/proagents/getting-started/README.md +3 -3
- package/proagents/getting-started/ai-training-setup.md +24 -24
- package/proagents/getting-started/pm-integration.md +22 -22
- package/proagents/getting-started/prompt-engineering.md +4 -4
- package/proagents/getting-started/team-onboarding.md +5 -5
- package/proagents/git/branch-strategy.md +10 -10
- package/proagents/git/commit-conventions.md +5 -5
- package/proagents/git/pr-workflow.md +5 -5
- package/proagents/git/rollback-procedures.md +7 -7
- package/proagents/ide-integration/README.md +1 -1
- package/proagents/ide-integration/cline-config.md +10 -10
- package/proagents/ide-integration/continue-config.md +1 -1
- package/proagents/ide-integration/cursor-rules.md +10 -10
- package/proagents/ide-integration/github-copilot.md +4 -4
- package/proagents/ide-integration/windsurf-rules.md +9 -9
- package/proagents/learning/adaptation.md +10 -10
- package/proagents/learning/data-collection.md +9 -9
- package/proagents/learning/reports.md +14 -14
- package/proagents/metrics/README.md +6 -6
- package/proagents/metrics/code-quality-kpis.md +6 -6
- package/proagents/metrics/deployment-metrics.md +6 -6
- package/proagents/metrics/developer-productivity.md +5 -5
- package/proagents/metrics/learning-effectiveness.md +6 -6
- package/proagents/migrations/from-claude-projects.md +7 -6
- package/proagents/migrations/from-cursor-rules.md +1 -1
- package/proagents/notifications/templates.md +3 -3
- package/proagents/parallel-features/README.md +5 -5
- package/proagents/parallel-features/conflict-detection.md +6 -6
- package/proagents/parallel-features/dependency-management.md +7 -7
- package/proagents/parallel-features/merge-coordination.md +8 -8
- package/proagents/parallel-features/tracking-system.md +7 -7
- package/proagents/performance/bundle-analysis.md +4 -4
- package/proagents/performance/load-testing.md +7 -7
- package/proagents/performance/runtime-metrics.md +6 -6
- package/proagents/performance/web-vitals.md +6 -6
- package/proagents/plugins/README.md +1 -1
- package/proagents/plugins/creating-plugins.md +1 -1
- package/proagents/plugins/plugin-api.md +2 -2
- package/proagents/plugins/plugin-registry.md +3 -3
- package/proagents/proagents.config.yaml +32 -9
- package/proagents/prompts/00-init-wizard.md +18 -18
- package/proagents/prompts/00-init.md +93 -93
- package/proagents/prompts/01-analysis.md +5 -5
- package/proagents/prompts/02-requirements.md +8 -8
- package/proagents/prompts/03-ui-design.md +14 -14
- package/proagents/prompts/04-planning.md +10 -10
- package/proagents/prompts/05-implementation.md +10 -10
- package/proagents/prompts/06-testing.md +14 -14
- package/proagents/prompts/06.5-code-review.md +8 -8
- package/proagents/prompts/07-documentation.md +142 -20
- package/proagents/prompts/08-deployment.md +12 -12
- package/proagents/prompts/09-rollback.md +12 -12
- package/proagents/prompts/README.md +4 -4
- package/proagents/prompts/accessibility/README.md +6 -6
- package/proagents/prompts/accessibility/audit.md +3 -3
- package/proagents/prompts/accessibility/wcag.md +1 -1
- package/proagents/prompts/debugging/README.md +4 -4
- package/proagents/prompts/debugging/performance-debug.md +5 -5
- package/proagents/prompts/debugging/systematic.md +4 -4
- package/proagents/prompts/performance/README.md +4 -4
- package/proagents/prompts/performance/analyze.md +4 -4
- package/proagents/prompts/refactoring/README.md +4 -4
- package/proagents/prompts/refactoring/code-smells.md +9 -9
- package/proagents/prompts/refactoring/patterns.md +6 -6
- package/proagents/prompts/security-audit/README.md +6 -6
- package/proagents/prompts/security-audit/code-review.md +5 -5
- package/proagents/reverse-engineering/README.md +21 -21
- package/proagents/reverse-engineering/architecture-extraction.md +6 -6
- package/proagents/reverse-engineering/code-analysis.md +6 -6
- package/proagents/reverse-engineering/dependency-mapping.md +10 -10
- package/proagents/reverse-engineering/diagram-generation.md +9 -9
- package/proagents/reverse-engineering/documentation-generation.md +7 -7
- package/proagents/reverse-engineering/pattern-detection.md +8 -8
- package/proagents/reverse-engineering/quality-assessment.md +10 -10
- package/proagents/rules/README.md +7 -7
- package/proagents/rules/custom-rules.md +8 -8
- package/proagents/runbooks/README.md +9 -9
- package/proagents/runbooks/dependency-vulnerability.md +4 -4
- package/proagents/runbooks/incident-response.md +12 -12
- package/proagents/runbooks/performance-degradation.md +5 -5
- package/proagents/runbooks/production-debugging.md +5 -5
- package/proagents/scaffolding/nextjs/README.md +10 -10
- package/proagents/scaffolding/nodejs/README.md +10 -10
- package/proagents/scaffolding/project-types.md +7 -7
- package/proagents/scaffolding/react/README.md +6 -6
- package/proagents/scaffolding/react-native/README.md +10 -10
- package/proagents/security/owasp-checklist.md +3 -3
- package/proagents/security/sast-guide.md +6 -6
- package/proagents/security/security-report-template.md +5 -5
- package/proagents/security/vulnerability-scanning.md +6 -6
- package/proagents/slash-commands.json +50 -75
- package/proagents/standards/README.md +4 -4
- package/proagents/standards/architecture-patterns.md +10 -10
- package/proagents/standards/naming-conventions-template.md +4 -4
- package/proagents/standards/override-system.md +8 -8
- package/proagents/team/code-ownership.md +4 -4
- package/proagents/team/communication-templates.md +6 -6
- package/proagents/team/handoff-protocol.md +4 -4
- package/proagents/team/ide-setup/cursor.md +1 -1
- package/proagents/templates/README.md +1 -1
- package/proagents/templates/release-notes.md +214 -0
- package/proagents/ui-integration/figma-guide.md +3 -3
- package/proagents/ui-integration/manual-export-guide.md +2 -2
- package/proagents/ui-integration/sketch-interpretation.md +2 -2
- package/proagents/webhooks/events.md +3 -3
- package/proagents/workflow-modes/README.md +11 -11
- package/proagents/workflow-modes/deferred-tracking.md +12 -12
- package/proagents/workflow-modes/entry-modes.md +16 -16
- package/proagents/workflow-modes/guardrails.md +7 -7
- package/proagents/workflow-modes/mode-detection.md +7 -7
- package/proagents/workflow-modes/mode-switching.md +9 -9
|
@@ -7,16 +7,16 @@ Universal prompts for creating comprehensive documentation.
|
|
|
7
7
|
## Quick Start
|
|
8
8
|
|
|
9
9
|
```
|
|
10
|
-
|
|
10
|
+
pa:doc
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
Related commands:
|
|
14
|
-
-
|
|
15
|
-
-
|
|
16
|
-
-
|
|
17
|
-
-
|
|
18
|
-
-
|
|
19
|
-
-
|
|
14
|
+
- `pa:doc-full` - Full in-depth documentation
|
|
15
|
+
- `pa:doc-moderate` - Balanced documentation
|
|
16
|
+
- `pa:doc-lite` - Quick reference docs
|
|
17
|
+
- `pa:doc-module [name]` - Document specific module
|
|
18
|
+
- `pa:doc-file [path]` - Document specific file
|
|
19
|
+
- `pa:doc-api` - API documentation
|
|
20
20
|
|
|
21
21
|
---
|
|
22
22
|
|
|
@@ -431,6 +431,8 @@ Generate changelog entry for: [VERSION]
|
|
|
431
431
|
Changes made:
|
|
432
432
|
[LIST OF CHANGES]
|
|
433
433
|
|
|
434
|
+
OUTPUT LOCATION: ./CHANGELOG.md (project root - client-facing)
|
|
435
|
+
|
|
434
436
|
Format:
|
|
435
437
|
```markdown
|
|
436
438
|
## [Version] - [Date]
|
|
@@ -460,6 +462,110 @@ Format:
|
|
|
460
462
|
|
|
461
463
|
---
|
|
462
464
|
|
|
465
|
+
## Release Notes (Client-Facing)
|
|
466
|
+
|
|
467
|
+
### Generate Release Notes
|
|
468
|
+
|
|
469
|
+
```
|
|
470
|
+
Generate release notes for: [VERSION]
|
|
471
|
+
|
|
472
|
+
OUTPUT LOCATION: ./RELEASE_NOTES.md (project root - for client sharing)
|
|
473
|
+
ALSO SAVE TO: ./docs/releases/v[VERSION].md (version archive)
|
|
474
|
+
|
|
475
|
+
```markdown
|
|
476
|
+
# Release Notes - v[VERSION]
|
|
477
|
+
|
|
478
|
+
**Release Date:** [DATE]
|
|
479
|
+
|
|
480
|
+
## Overview
|
|
481
|
+
|
|
482
|
+
[2-3 sentence summary of this release for clients/stakeholders]
|
|
483
|
+
|
|
484
|
+
## What's New
|
|
485
|
+
|
|
486
|
+
### [Feature 1 Name]
|
|
487
|
+
[Client-friendly description of the feature and its benefits]
|
|
488
|
+
|
|
489
|
+
### [Feature 2 Name]
|
|
490
|
+
[Client-friendly description]
|
|
491
|
+
|
|
492
|
+
## Improvements
|
|
493
|
+
|
|
494
|
+
- [Improvement 1 - user-facing benefit]
|
|
495
|
+
- [Improvement 2 - user-facing benefit]
|
|
496
|
+
|
|
497
|
+
## Bug Fixes
|
|
498
|
+
|
|
499
|
+
- Fixed [issue description in user terms]
|
|
500
|
+
- Resolved [issue description in user terms]
|
|
501
|
+
|
|
502
|
+
## Breaking Changes
|
|
503
|
+
|
|
504
|
+
⚠️ [Any breaking changes that affect users - if none, omit section]
|
|
505
|
+
|
|
506
|
+
## Upgrade Instructions
|
|
507
|
+
|
|
508
|
+
[Steps to upgrade from previous version - if needed]
|
|
509
|
+
|
|
510
|
+
## Known Issues
|
|
511
|
+
|
|
512
|
+
[Any known issues in this release - if none, omit section]
|
|
513
|
+
|
|
514
|
+
---
|
|
515
|
+
|
|
516
|
+
For technical details, see [CHANGELOG.md](./CHANGELOG.md)
|
|
517
|
+
For support, contact [support email/link]
|
|
518
|
+
```
|
|
519
|
+
```
|
|
520
|
+
|
|
521
|
+
### Generate Version-Specific Release Notes
|
|
522
|
+
|
|
523
|
+
```
|
|
524
|
+
Generate detailed release notes for version [VERSION]
|
|
525
|
+
|
|
526
|
+
Save to: ./docs/releases/v[VERSION].md
|
|
527
|
+
|
|
528
|
+
Include:
|
|
529
|
+
1. Executive summary (for stakeholders)
|
|
530
|
+
2. New features with screenshots/examples
|
|
531
|
+
3. Performance improvements with metrics
|
|
532
|
+
4. Security updates
|
|
533
|
+
5. Migration guide (if breaking changes)
|
|
534
|
+
6. Known issues and workarounds
|
|
535
|
+
7. Upcoming features preview
|
|
536
|
+
```
|
|
537
|
+
|
|
538
|
+
### Generate Release Announcement
|
|
539
|
+
|
|
540
|
+
```
|
|
541
|
+
Generate release announcement for: [VERSION]
|
|
542
|
+
|
|
543
|
+
Use for: Email, Slack, Social media
|
|
544
|
+
|
|
545
|
+
Format:
|
|
546
|
+
```markdown
|
|
547
|
+
# 🚀 [Product Name] v[VERSION] Released!
|
|
548
|
+
|
|
549
|
+
[One compelling sentence about the release]
|
|
550
|
+
|
|
551
|
+
## Highlights
|
|
552
|
+
|
|
553
|
+
✨ [Feature 1] - [One line benefit]
|
|
554
|
+
✨ [Feature 2] - [One line benefit]
|
|
555
|
+
🐛 [Key fix] - [One line description]
|
|
556
|
+
|
|
557
|
+
## Quick Links
|
|
558
|
+
|
|
559
|
+
- 📖 [Full Release Notes](./RELEASE_NOTES.md)
|
|
560
|
+
- 📦 [Download/Install](#)
|
|
561
|
+
- 📚 [Documentation](#)
|
|
562
|
+
|
|
563
|
+
[Call to action]
|
|
564
|
+
```
|
|
565
|
+
```
|
|
566
|
+
|
|
567
|
+
---
|
|
568
|
+
|
|
463
569
|
## Architecture Documentation
|
|
464
570
|
|
|
465
571
|
### Document Architecture
|
|
@@ -658,16 +764,32 @@ MAINTENANCE:
|
|
|
658
764
|
|
|
659
765
|
---
|
|
660
766
|
|
|
661
|
-
##
|
|
662
|
-
|
|
663
|
-
|
|
|
664
|
-
|
|
665
|
-
|
|
|
666
|
-
|
|
|
667
|
-
|
|
|
668
|
-
|
|
|
669
|
-
|
|
|
670
|
-
|
|
|
671
|
-
|
|
|
672
|
-
|
|
673
|
-
|
|
767
|
+
## Output Locations Summary
|
|
768
|
+
|
|
769
|
+
| Document Type | Location | Audience |
|
|
770
|
+
|---------------|----------|----------|
|
|
771
|
+
| Release Notes | `./RELEASE_NOTES.md` | Clients/Stakeholders |
|
|
772
|
+
| Changelog | `./CHANGELOG.md` | Clients/Public |
|
|
773
|
+
| Version Archive | `./docs/releases/v*.md` | Clients |
|
|
774
|
+
| API Docs | `./docs/api/` | Developers/Clients |
|
|
775
|
+
| README | `./README.md` | Public |
|
|
776
|
+
| Dev Changelog | `proagents/changelog/` | Internal Team |
|
|
777
|
+
| Feature Docs | `proagents/active-features/` | Internal Team |
|
|
778
|
+
|
|
779
|
+
---
|
|
780
|
+
|
|
781
|
+
## Commands Reference
|
|
782
|
+
|
|
783
|
+
| Command | Description | Output Location |
|
|
784
|
+
|---------|-------------|-----------------|
|
|
785
|
+
| `pa:doc` | Show documentation options | - |
|
|
786
|
+
| `pa:doc-full` | Full documentation | `./docs/` |
|
|
787
|
+
| `pa:doc-moderate` | Balanced documentation | `./docs/` |
|
|
788
|
+
| `pa:doc-lite` | Quick reference | `./docs/` |
|
|
789
|
+
| `pa:doc-module [name]` | Document module | `./docs/modules/` |
|
|
790
|
+
| `pa:doc-file [path]` | Document file | `./docs/` |
|
|
791
|
+
| `pa:doc-api` | API documentation | `./docs/api/` |
|
|
792
|
+
| `pa:readme` | Generate README | `./README.md` |
|
|
793
|
+
| `pa:changelog` | Update changelog | `./CHANGELOG.md` |
|
|
794
|
+
| `pa:release` | Generate release notes | `./RELEASE_NOTES.md` |
|
|
795
|
+
| `pa:release [version]` | Version-specific notes | `./docs/releases/v*.md` |
|
|
@@ -7,13 +7,13 @@ Universal prompts for deployment preparation and execution.
|
|
|
7
7
|
## Quick Start
|
|
8
8
|
|
|
9
9
|
```
|
|
10
|
-
|
|
10
|
+
pa:deploy
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
Related commands:
|
|
14
|
-
-
|
|
15
|
-
-
|
|
16
|
-
-
|
|
14
|
+
- `pa:deploy-staging` - Deploy to staging
|
|
15
|
+
- `pa:deploy-prod` - Deploy to production
|
|
16
|
+
- `pa:deploy-check` - Pre-deployment checks
|
|
17
17
|
|
|
18
18
|
---
|
|
19
19
|
|
|
@@ -526,14 +526,14 @@ AFTER:
|
|
|
526
526
|
|
|
527
527
|
---
|
|
528
528
|
|
|
529
|
-
##
|
|
529
|
+
## Commands Reference
|
|
530
530
|
|
|
531
531
|
| Command | Description |
|
|
532
532
|
|---------|-------------|
|
|
533
|
-
|
|
|
534
|
-
|
|
|
535
|
-
|
|
|
536
|
-
|
|
|
537
|
-
|
|
|
538
|
-
|
|
|
539
|
-
|
|
|
533
|
+
| `pa:deploy` | Show deployment options |
|
|
534
|
+
| `pa:deploy-staging` | Deploy to staging |
|
|
535
|
+
| `pa:deploy-prod` | Deploy to production |
|
|
536
|
+
| `pa:deploy-check` | Pre-deployment checklist |
|
|
537
|
+
| `pa:deploy-monitor` | Post-deploy monitoring |
|
|
538
|
+
| `pa:deploy-runbook` | Generate deployment runbook |
|
|
539
|
+
| `pa:release-notes` | Generate release notes |
|
|
@@ -7,12 +7,12 @@ Universal prompts for rollback planning and execution.
|
|
|
7
7
|
## Quick Start
|
|
8
8
|
|
|
9
9
|
```
|
|
10
|
-
|
|
10
|
+
pa:rollback
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
Related commands:
|
|
14
|
-
-
|
|
15
|
-
-
|
|
14
|
+
- `pa:rollback-quick` - Quick rollback to previous version
|
|
15
|
+
- `pa:rollback-full` - Full rollback with database revert
|
|
16
16
|
|
|
17
17
|
---
|
|
18
18
|
|
|
@@ -540,15 +540,15 @@ AFTER ROLLBACK:
|
|
|
540
540
|
|
|
541
541
|
---
|
|
542
542
|
|
|
543
|
-
##
|
|
543
|
+
## Commands Reference
|
|
544
544
|
|
|
545
545
|
| Command | Description |
|
|
546
546
|
|---------|-------------|
|
|
547
|
-
|
|
|
548
|
-
|
|
|
549
|
-
|
|
|
550
|
-
|
|
|
551
|
-
|
|
|
552
|
-
|
|
|
553
|
-
|
|
|
554
|
-
|
|
|
547
|
+
| `pa:rollback` | Show rollback options |
|
|
548
|
+
| `pa:rollback-quick` | Quick code-only rollback |
|
|
549
|
+
| `pa:rollback-full` | Full rollback with DB |
|
|
550
|
+
| `pa:rollback-plan` | Create rollback plan |
|
|
551
|
+
| `pa:rollback-verify` | Verify rollback success |
|
|
552
|
+
| `pa:rollback-test` | Test rollback procedure |
|
|
553
|
+
| `pa:incident-doc` | Document incident |
|
|
554
|
+
| `pa:post-mortem` | Create post-mortem |
|
|
@@ -27,12 +27,12 @@ These prompts work with any AI platform (Claude, ChatGPT, Gemini, Copilot, etc.)
|
|
|
27
27
|
|
|
28
28
|
## Usage
|
|
29
29
|
|
|
30
|
-
### With
|
|
30
|
+
### With Commands
|
|
31
31
|
|
|
32
32
|
```
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
pa:init → Uses 00-init.md
|
|
34
|
+
pa:feature → Uses full workflow
|
|
35
|
+
pa:doc → Uses 07-documentation.md
|
|
36
36
|
```
|
|
37
37
|
|
|
38
38
|
### Manual Copy-Paste
|
|
@@ -24,22 +24,22 @@ These prompts help ensure your application is accessible to all users, including
|
|
|
24
24
|
|
|
25
25
|
```bash
|
|
26
26
|
# Full accessibility audit
|
|
27
|
-
|
|
27
|
+
pa:a11y audit <component>
|
|
28
28
|
|
|
29
29
|
# Check WCAG compliance at specific level
|
|
30
|
-
|
|
30
|
+
pa:a11y wcag AA
|
|
31
31
|
|
|
32
32
|
# Review ARIA implementation
|
|
33
|
-
|
|
33
|
+
pa:a11y aria <component>
|
|
34
34
|
|
|
35
35
|
# Check keyboard navigation
|
|
36
|
-
|
|
36
|
+
pa:a11y keyboard <component>
|
|
37
37
|
|
|
38
38
|
# Fix specific accessibility issue
|
|
39
|
-
|
|
39
|
+
pa:a11y fix <issue>
|
|
40
40
|
|
|
41
41
|
# Generate accessibility tests
|
|
42
|
-
|
|
42
|
+
pa:a11y test <component>
|
|
43
43
|
```
|
|
44
44
|
|
|
45
45
|
---
|
|
@@ -204,13 +204,13 @@ function Modal({ isOpen, onClose, children }) {
|
|
|
204
204
|
|
|
205
205
|
```bash
|
|
206
206
|
# Run accessibility audit
|
|
207
|
-
|
|
207
|
+
pa:a11y audit ./src/components/Button.tsx
|
|
208
208
|
|
|
209
209
|
# Check specific WCAG criteria
|
|
210
|
-
|
|
210
|
+
pa:a11y check 1.4.3 # Color contrast
|
|
211
211
|
|
|
212
212
|
# Generate a11y tests
|
|
213
|
-
|
|
213
|
+
pa:a11y test-gen ./src/components/Form.tsx
|
|
214
214
|
```
|
|
215
215
|
|
|
216
216
|
---
|
|
@@ -18,10 +18,10 @@ AI-assisted debugging workflows.
|
|
|
18
18
|
## Quick Commands
|
|
19
19
|
|
|
20
20
|
```bash
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
pa:debug analyze <error> # Analyze error message
|
|
22
|
+
pa:debug trace <issue> # Trace issue through code
|
|
23
|
+
pa:debug suggest <symptom> # Get fix suggestions
|
|
24
|
+
pa:debug test <hypothesis> # Test a hypothesis
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
---
|
|
@@ -365,17 +365,17 @@ function MyComponent() {
|
|
|
365
365
|
|
|
366
366
|
```bash
|
|
367
367
|
# Profile render performance
|
|
368
|
-
|
|
368
|
+
pa:perf profile --component UserList
|
|
369
369
|
|
|
370
370
|
# Find memory leaks
|
|
371
|
-
|
|
371
|
+
pa:perf memory --snapshot
|
|
372
372
|
|
|
373
373
|
# Analyze bundle
|
|
374
|
-
|
|
374
|
+
pa:perf bundle --analyze
|
|
375
375
|
|
|
376
376
|
# Check Core Web Vitals
|
|
377
|
-
|
|
377
|
+
pa:perf vitals
|
|
378
378
|
|
|
379
379
|
# Find slow API calls
|
|
380
|
-
|
|
380
|
+
pa:perf network --slow
|
|
381
381
|
```
|
|
@@ -257,14 +257,14 @@ function Counter() {
|
|
|
257
257
|
|
|
258
258
|
```bash
|
|
259
259
|
# Analyze error message
|
|
260
|
-
|
|
260
|
+
pa:debug error "TypeError: Cannot read property 'name' of undefined"
|
|
261
261
|
|
|
262
262
|
# Trace execution
|
|
263
|
-
|
|
263
|
+
pa:debug trace "User registration fails after email validation"
|
|
264
264
|
|
|
265
265
|
# Get fix suggestions
|
|
266
|
-
|
|
266
|
+
pa:debug fix "Form resets on blur"
|
|
267
267
|
|
|
268
268
|
# Generate debugging test
|
|
269
|
-
|
|
269
|
+
pa:debug test "API returns 500 on large payload"
|
|
270
270
|
```
|
|
@@ -18,10 +18,10 @@ AI-assisted performance analysis and optimization.
|
|
|
18
18
|
## Quick Commands
|
|
19
19
|
|
|
20
20
|
```bash
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
pa:perf analyze <code> # Analyze code performance
|
|
22
|
+
pa:perf profile <function> # Profile function execution
|
|
23
|
+
pa:perf optimize <target> # Suggest optimizations
|
|
24
|
+
pa:perf benchmark <code> # Create benchmarks
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
---
|
|
@@ -252,14 +252,14 @@ console.log(`A: ${timeA}ms, B: ${timeB}ms`);
|
|
|
252
252
|
|
|
253
253
|
```bash
|
|
254
254
|
# Analyze function complexity
|
|
255
|
-
|
|
255
|
+
pa:perf complexity <function>
|
|
256
256
|
|
|
257
257
|
# Find memory leaks
|
|
258
|
-
|
|
258
|
+
pa:perf memory-leak <component>
|
|
259
259
|
|
|
260
260
|
# Suggest optimizations
|
|
261
|
-
|
|
261
|
+
pa:perf optimize <code>
|
|
262
262
|
|
|
263
263
|
# Generate benchmark
|
|
264
|
-
|
|
264
|
+
pa:perf benchmark <function>
|
|
265
265
|
```
|
|
@@ -18,10 +18,10 @@ AI-assisted code refactoring workflows.
|
|
|
18
18
|
## Quick Commands
|
|
19
19
|
|
|
20
20
|
```bash
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
pa:refactor identify # Find refactoring opportunities
|
|
22
|
+
pa:refactor plan # Create refactoring plan
|
|
23
|
+
pa:refactor execute # Perform refactoring
|
|
24
|
+
pa:refactor validate # Verify refactoring
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
---
|
|
@@ -128,19 +128,19 @@ class EmployeeRepository { save() {} }
|
|
|
128
128
|
|
|
129
129
|
```bash
|
|
130
130
|
# Find long methods
|
|
131
|
-
|
|
131
|
+
pa:refactor smell long-methods --threshold 30
|
|
132
132
|
|
|
133
133
|
# Find large files
|
|
134
|
-
|
|
134
|
+
pa:refactor smell large-files --threshold 500
|
|
135
135
|
|
|
136
136
|
# Find duplicate code
|
|
137
|
-
|
|
137
|
+
pa:refactor smell duplicates
|
|
138
138
|
|
|
139
139
|
# Find complex functions
|
|
140
|
-
|
|
140
|
+
pa:refactor smell complexity --threshold 10
|
|
141
141
|
|
|
142
142
|
# Full analysis
|
|
143
|
-
|
|
143
|
+
pa:refactor smell all
|
|
144
144
|
```
|
|
145
145
|
|
|
146
146
|
---
|
|
@@ -149,16 +149,16 @@ class EmployeeRepository { save() {} }
|
|
|
149
149
|
|
|
150
150
|
```bash
|
|
151
151
|
# Extract long method
|
|
152
|
-
|
|
152
|
+
pa:refactor extract-method {function_name}
|
|
153
153
|
|
|
154
154
|
# Split large class
|
|
155
|
-
|
|
155
|
+
pa:refactor split-class {class_name}
|
|
156
156
|
|
|
157
157
|
# Remove dead code
|
|
158
|
-
|
|
158
|
+
pa:refactor remove-dead-code
|
|
159
159
|
|
|
160
160
|
# Inline trivial methods
|
|
161
|
-
|
|
161
|
+
pa:refactor inline-trivial
|
|
162
162
|
```
|
|
163
163
|
|
|
164
164
|
---
|
|
@@ -472,22 +472,22 @@ function processPayment(order, payment) {
|
|
|
472
472
|
|
|
473
473
|
```bash
|
|
474
474
|
# Apply specific refactoring pattern
|
|
475
|
-
|
|
475
|
+
pa:refactor apply extract-method --function processOrder
|
|
476
476
|
|
|
477
477
|
# Apply polymorphism
|
|
478
|
-
|
|
478
|
+
pa:refactor apply polymorphism --switch-statement line:45
|
|
479
479
|
|
|
480
480
|
# Extract class
|
|
481
|
-
|
|
481
|
+
pa:refactor apply extract-class --class User --extract Profile,Auth
|
|
482
482
|
|
|
483
483
|
# Replace magic numbers
|
|
484
|
-
|
|
484
|
+
pa:refactor apply constants --file config.ts
|
|
485
485
|
|
|
486
486
|
# Introduce parameter object
|
|
487
|
-
|
|
487
|
+
pa:refactor apply param-object --function createUser
|
|
488
488
|
|
|
489
489
|
# Flatten conditionals
|
|
490
|
-
|
|
490
|
+
pa:refactor apply guard-clauses --function processPayment
|
|
491
491
|
```
|
|
492
492
|
|
|
493
493
|
---
|
|
@@ -26,22 +26,22 @@ These prompts help identify and fix security vulnerabilities in your code. ProAg
|
|
|
26
26
|
|
|
27
27
|
```bash
|
|
28
28
|
# Full security audit
|
|
29
|
-
|
|
29
|
+
pa:security audit <file_or_directory>
|
|
30
30
|
|
|
31
31
|
# OWASP Top 10 check
|
|
32
|
-
|
|
32
|
+
pa:security owasp <code>
|
|
33
33
|
|
|
34
34
|
# Find hardcoded secrets
|
|
35
|
-
|
|
35
|
+
pa:security secrets <path>
|
|
36
36
|
|
|
37
37
|
# Check dependency vulnerabilities
|
|
38
|
-
|
|
38
|
+
pa:security deps
|
|
39
39
|
|
|
40
40
|
# Review authentication code
|
|
41
|
-
|
|
41
|
+
pa:security auth <file>
|
|
42
42
|
|
|
43
43
|
# Check for injection vulnerabilities
|
|
44
|
-
|
|
44
|
+
pa:security injection <code>
|
|
45
45
|
```
|
|
46
46
|
|
|
47
47
|
---
|
|
@@ -244,17 +244,17 @@ app.post('/api/users', async (req, res) => {
|
|
|
244
244
|
|
|
245
245
|
```bash
|
|
246
246
|
# Full security audit
|
|
247
|
-
|
|
247
|
+
pa:security audit ./src
|
|
248
248
|
|
|
249
249
|
# Check for OWASP Top 10
|
|
250
|
-
|
|
250
|
+
pa:security owasp ./src/api
|
|
251
251
|
|
|
252
252
|
# Find secrets
|
|
253
|
-
|
|
253
|
+
pa:security secrets ./
|
|
254
254
|
|
|
255
255
|
# Check dependencies
|
|
256
|
-
|
|
256
|
+
pa:security deps
|
|
257
257
|
|
|
258
258
|
# Generate security report
|
|
259
|
-
|
|
259
|
+
pa:security report
|
|
260
260
|
```
|
|
@@ -21,7 +21,7 @@ Reverse engineering enables ProAgents to:
|
|
|
21
21
|
|
|
22
22
|
### 1. Onboarding to Existing Project
|
|
23
23
|
```
|
|
24
|
-
|
|
24
|
+
pa:reverse-engineer --full
|
|
25
25
|
|
|
26
26
|
Output:
|
|
27
27
|
- Complete architecture documentation
|
|
@@ -33,7 +33,7 @@ Output:
|
|
|
33
33
|
|
|
34
34
|
### 2. Documentation Generation
|
|
35
35
|
```
|
|
36
|
-
|
|
36
|
+
pa:reverse-engineer --docs
|
|
37
37
|
|
|
38
38
|
Output:
|
|
39
39
|
- README for each module
|
|
@@ -44,7 +44,7 @@ Output:
|
|
|
44
44
|
|
|
45
45
|
### 3. Architecture Understanding
|
|
46
46
|
```
|
|
47
|
-
|
|
47
|
+
pa:reverse-engineer --architecture
|
|
48
48
|
|
|
49
49
|
Output:
|
|
50
50
|
- High-level architecture diagram
|
|
@@ -55,7 +55,7 @@ Output:
|
|
|
55
55
|
|
|
56
56
|
### 4. Code Quality Assessment
|
|
57
57
|
```
|
|
58
|
-
|
|
58
|
+
pa:reverse-engineer --quality
|
|
59
59
|
|
|
60
60
|
Output:
|
|
61
61
|
- Tech debt identification
|
|
@@ -104,21 +104,21 @@ Output:
|
|
|
104
104
|
|
|
105
105
|
```bash
|
|
106
106
|
# Full reverse engineering
|
|
107
|
-
|
|
107
|
+
pa:reverse-engineer
|
|
108
108
|
|
|
109
109
|
# Specific scope
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
110
|
+
pa:reverse-engineer --scope architecture
|
|
111
|
+
pa:reverse-engineer --scope api
|
|
112
|
+
pa:reverse-engineer --scope components
|
|
113
|
+
pa:reverse-engineer --scope database
|
|
114
114
|
|
|
115
115
|
# Output format
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
116
|
+
pa:reverse-engineer --format markdown
|
|
117
|
+
pa:reverse-engineer --format html
|
|
118
|
+
pa:reverse-engineer --format json
|
|
119
119
|
|
|
120
120
|
# Specific path
|
|
121
|
-
|
|
121
|
+
pa:reverse-engineer --path ./src/modules/auth
|
|
122
122
|
```
|
|
123
123
|
|
|
124
124
|
---
|
|
@@ -138,14 +138,14 @@ Output:
|
|
|
138
138
|
|
|
139
139
|
---
|
|
140
140
|
|
|
141
|
-
##
|
|
141
|
+
## Commands
|
|
142
142
|
|
|
143
143
|
| Command | Description |
|
|
144
144
|
|---------|-------------|
|
|
145
|
-
|
|
|
146
|
-
|
|
|
147
|
-
|
|
|
148
|
-
|
|
|
149
|
-
|
|
|
150
|
-
|
|
|
151
|
-
|
|
|
145
|
+
| `pa:reverse-engineer` | Full reverse engineering |
|
|
146
|
+
| `pa:re-architecture` | Extract architecture only |
|
|
147
|
+
| `pa:re-docs` | Generate documentation |
|
|
148
|
+
| `pa:re-diagrams` | Generate diagrams |
|
|
149
|
+
| `pa:re-patterns` | Detect patterns |
|
|
150
|
+
| `pa:re-deps` | Map dependencies |
|
|
151
|
+
| `pa:re-quality` | Quality assessment |
|