memory-journal-mcp 7.4.0 → 7.5.0

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.
@@ -0,0 +1,48 @@
1
+ # GitHub Copilot CLI Pre-Push Audit Workflow
2
+
3
+ This workflow orchestrates an AI-driven adversarial review using the GitHub Copilot CLI (`@github/copilot`). It acts as a strict secondary validation layer (a "second opinion") across both localized logic changes (PR reviews) and full repository inspections.
4
+
5
+ ## Phase 1: Environment Readiness & Authentication
6
+
7
+ 1. **Verify Copilot CLI Presence**:
8
+ Run `npm list -g @github/copilot`.
9
+ If missing, install it automatically: `npm i -g @github/copilot`.
10
+
11
+ 2. **Verify Authentication**:
12
+ Ensure the CLI is authenticated via `copilot auth`. If the user has not authenticated, pause the agentic execution and prompt them to authorize via the browser endpoint.
13
+
14
+ ## Phase 2: Execution Targeting (The Audit Context)
15
+
16
+ Determine whether this is a localized Feature Branch (Pre-Push PR) review or a whole Codebase Audit.
17
+
18
+ ### Path A: Pre-Push PR Review
19
+ 1. Diff the current working branch against the primary target (e.g., `main` or `master`).
20
+ 2. **Execute Single-Shot Evaluation Buffer**:
21
+ ```bash
22
+ git diff main | copilot "Act as an extremely strict, senior PR reviewer. Review this submitted git diff. Analyze edge cases, logic gaps, unhandled bounds, typescript compliance, and security flaws. Produce a Markdown-formatted table of defects."
23
+ ```
24
+
25
+ ### Path B: Comprehensive Codebase Review
26
+ 1. **Execute Single-Shot Codebase Buffer**:
27
+ ```bash
28
+ echo "Act as an adversarial security and performance auditor. Perform a comprehensive analysis of all files in this repository. Point out bad architectural couplings, injection vectors, unhandled error flows, and data boundaries that are not explicit. Output as a detailed Markdown report." | copilot
29
+ ```
30
+
31
+ ## Phase 3: Journal Archival (Verification Sync)
32
+
33
+ 1. Capture the exact Markdown payload generated by Copilot.
34
+ 2. Persist this via `memory-journal-mcp`:
35
+ - Tool: `create_entry` (or `team_create_entry` if shared).
36
+ - Type: `audit_finding` or `triage`.
37
+ - Title: "Copilot CLI Adversarial Review: [Topic]"
38
+ - Content: The generated JSON/Markdown from the terminal stdout.
39
+ - Tags: `copilot`, `review`, `github-commander`.
40
+
41
+ ## Phase 4: Human-in-the-Loop Gateway
42
+
43
+ 1. Analyze and summarize the Copilot payload.
44
+ 2. Present the summarized critique directly to the User.
45
+ 3. Pause and Wait. Do not commit or push the code.
46
+ 4. **Branching Action**:
47
+ - If User approves changes: Remediate the code directly based on Copilot's findings using local agent tool capabilities (`replace_file_content`, etc).
48
+ - If User rejects/ignores the findings: Proceed to standard commit and push pipelines.
@@ -0,0 +1,64 @@
1
+ ---
2
+ name: github-copilot-cli
3
+ description: |
4
+ Documentation and instructions for integrating the GitHub Copilot CLI (`copilot`)
5
+ into agentic workflows. Use this skill when you need a "second opinion" adversarial
6
+ review of a local codebase, a pre-push PR review using alternative advanced models,
7
+ or shell suggestion capabilities from GitHub. Activates on "Copilot CLI", "local PR review",
8
+ or "codebase Copilot review".
9
+ ---
10
+
11
+ # GitHub Copilot CLI
12
+
13
+ The GitHub Copilot CLI (`@github/copilot`) acts as an interactive, terminal-native representation of the Copilot agentic ecosystem.
14
+
15
+ When integrated into an AI workflow (AI evaluating AI), it acts as a robust secondary reviewer mapping against different context windows and potentially different foundational models than the primary agent, significantly reducing confirmation bias during PR or full-repository reviews.
16
+
17
+ ## Installation & Authentication Baseline
18
+
19
+ Before using the CLI in automated pipelines, ensure the terminal environment is equipped and authenticated:
20
+
21
+ ```bash
22
+ # 1. Verify availability
23
+ npm list -g @github/copilot
24
+
25
+ # 2. Install if missing
26
+ npm i -g @github/copilot
27
+
28
+ # 3. Authenticate (Requires human interaction/browser approval)
29
+ copilot auth
30
+ ```
31
+
32
+ ## Agentic Interaction Strategies
33
+
34
+ Because the Copilot CLI launches an interactive REPL (`? What would you like to do?`), standalone non-interactive agents cannot easily navigate its interactive curses UI natively.
35
+
36
+ To effectively harness it during automated reviews, you must format non-interactive input buffers or leverage its single-shot explanation endpoints:
37
+
38
+ ### Non-Interactive Command Piping
39
+
40
+ While primarily interactive, you can echo requests directly into the tool for one-shot evaluation loops.
41
+
42
+ ```bash
43
+ # Full Repository Security Audit
44
+ echo "Please perform a comprehensive security analysis of all files in this repository. Point out unchecked injections, logic flaws, and credential leaks. Present it in markdown." | copilot
45
+
46
+ # Pre-Push PR Diff Review
47
+ git diff main | copilot "Act as a strict PR reviewer. Here is my local diff against main. List specifically what will break, style issues, and any unhandled edge cases."
48
+ ```
49
+
50
+ ### Direct Tool Commands
51
+
52
+ For precise shell suggestions or file explanations:
53
+
54
+ ```bash
55
+ # Shell Suggestion (Evaluates context and produces command)
56
+ gh copilot suggest "find all files over 5mb in the current directory"
57
+
58
+ # File Explanation
59
+ gh copilot explain "src/utils/crypto.ts"
60
+ ```
61
+
62
+ ## Workflows Integration
63
+
64
+ This skill works synergistically with `github-commander`. Use the `copilot-audit` workflow via `github-commander` to execute a structured, auditable validation loop utilizing this CLI before generating PRs.
@@ -15,6 +15,7 @@
15
15
  "docker/",
16
16
  "github-actions/",
17
17
  "github-commander/",
18
+ "github-copilot-cli/",
18
19
  "gitlab/",
19
20
  "golang/",
20
21
  "mysql/",