Skip to content

feat: add analyst ops role pack - #2552

Draft
rrv-12 wants to merge 2 commits into
affaan-m:mainfrom
rrv-12:dev-rishav
Draft

rrv-12 wants to merge 2 commits into
affaan-m:mainfrom
rrv-12:dev-rishav

Conversation

@rrv-12

@rrv-12 rrv-12 commented Jul 23, 2026 •

Copy link
Copy Markdown

What Changed

Added the first scoped non-technical role pack for analyst operations.

This PR adds:

  • skills/analyst-ops/SKILL.md as the canonical analyst operations skill
  • agents/analyst-reviewer.md as the review agent for analyst readouts
  • .agents/skills/analyst-ops/ plus agents/openai.yaml for the Codex-facing skill surface
  • analyst-ops registration in agent.yaml
  • package/export wiring in package.json
  • install-module wiring in manifests/install-modules.json
  • catalog/count updates in README, AGENTS docs, Chinese docs, and Claude plugin metadata

Why This Change

Issue #2522 proposes role packs for non-technical roles, starting with analyst operations.

ECC already has strong developer-focused skills and some business/operator skills, but there is not yet a full role-pack pattern for analyst work. This adds a focused first version without expanding scope into HR, procurement, or manager packs.

The core rule is evidence discipline: no important number should ship unless it has a named source, metric definition, denominator, grain, and time window. The reviewer agent adds the corresponding review lane for unsourced numbers, undefined metrics, misleading charts, incompatible comparisons, and correlation presented as causation.

Testing Done

  • Manual testing completed
  • Automated tests pass locally (node tests/run-all.js)
  • Edge cases considered and tested

Passed locally:

  • node scripts/ci/validate-skills.js
  • node scripts/ci/validate-agents.js
  • node tests/ci/codex-skill-surface.test.js
  • node scripts/ci/catalog.js --text
  • node scripts/ci/generate-command-registry.js --check
  • node scripts/ci/validate-no-personal-paths.js
  • git diff --check

Full node tests/run-all.js did not complete locally because this Windows environment has no installed dependencies / package-manager binary available, and dependency-backed checks requiring ajv failed. The broader test run also hit existing Windows/path-space related failures unrelated to this PR.

Type of Change

  • fix: Bug fix
  • feat: New feature
  • refactor: Code refactoring
  • docs: Documentation
  • test: Tests
  • chore: Maintenance/tooling
  • ci: CI/CD changes

Security & Quality Checklist

  • No secrets or API keys committed (ghp_, sk-, AKIA, xoxb, xoxp patterns checked)
  • JSON files validate cleanly
  • Shell scripts pass shellcheck (if applicable)
  • Pre-commit hooks pass locally (if configured)
  • No sensitive data exposed in logs or output
  • Follows conventional commits format

If you changed dependencies or package.json (bin / files / deps)

  • Ran yarn install --mode=update-lockfile and committed the yarn.lock change. CI runs Yarn in hardened mode on public PRs and fails if the lockfile would be modified, so an out of date yarn.lock breaks the build even when nothing else is wrong.

No dependency changes were made. package.json was only updated to include the new skill path in the publish surface.

If you added a skill, command, agent, hook, or CLI tool

  • Registered in package.json (files), manifests/install-modules.json, and agent.yaml
  • Regenerated the catalog (node scripts/ci/catalog.js --write --text)
  • Command registry checked (node scripts/ci/generate-command-registry.js --check)
  • Updated the docs tables it belongs in (README.md, AGENTS.md, docs/zh-CN/README.md, docs/zh-CN/AGENTS.md)
  • Cross-harness surfaces updated for Codex (.agents/skills/analyst-ops/ plus agents/openai.yaml)
  • Full gauntlet passes locally (npm test)

Not applicable:

  • manifests/install-components.json: no new install component was needed because this uses the existing business-content module.
  • COMMANDS-QUICK-REF.md / docs/COMMAND-AGENT-MAP.md: no command was added.
  • tests/scripts/npm-publish-surface.test.js: no new script path was added.

Documentation

  • Updated relevant documentation
  • README updated
  • Added comments for complex logic

No code logic was added, so code comments were not applicable.

@rrv-12
rrv-12 requested a review from affaan-m as a code owner July 23, 2026 19:06
@coderabbitai

coderabbitai Bot commented Jul 23, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

Adds the analyst-ops evidence-first workflow, the analyst-reviewer agent, registration and packaging updates, and synchronized English and Chinese catalog counts and listings.

Changes

Analyst operations surface

Layer / File(s) Summary
Analyst Ops workflow
.agents/skills/analyst-ops/..., skills/analyst-ops/..., .agents/skills/analyst-ops/agents/openai.yaml
Defines evidence sourcing, metric contracts, comparison validation, chart integrity checks, structured output, and the OpenAI skill interface.
Analyst reviewer agent
agents/analyst-reviewer.md
Adds review instructions, severity standards, analytical quality checklists, structured findings, and approval criteria.
Skill registration and packaging
agent.yaml, manifests/install-modules.json, package.json
Registers analyst-ops for installation and includes it in the published package.
Catalog and documentation synchronization
.claude-plugin/plugin.json, AGENTS.md, README.md, README.zh-CN.md, docs/zh-CN/*
Updates agent and skill counts, adds the new agent and skill listings, and synchronizes parity documentation.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related PRs

  • affaan-m/ECC#2202: Adds another skill with shared catalog and npm packaging updates.
  • affaan-m/ECC#2277: Adds a skill and updates shared registration and packaging plumbing.
  • affaan-m/ECC#2394: Updates catalog metadata and documentation for newly added agents and skills.

Suggested reviewers: affaan-m

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title clearly matches the main change: adding an analyst ops role pack.
Description check ✅ Passed The description directly explains the analyst ops skill, reviewer agent, registrations, and doc updates.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@ecc-tools

ecc-tools Bot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

ECC bundle files are already tracked in this repository. Skipping generation of another bundle PR.

@greptile-apps

greptile-apps Bot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR introduces the analyst-ops role pack — a non-technical skill focused on evidence discipline for analytical readouts — along with the companion analyst-reviewer agent. All required registration surfaces (agent.yaml, package.json, install-modules.json, Codex .agents/skills/ surface, and count strings across English and Chinese docs) are updated consistently.

  • skills/analyst-ops/SKILL.md and .agents/skills/analyst-ops/SKILL.md are byte-for-byte identical (the dual-surface pattern used throughout the repo), and the content itself is well-structured with clear metric contracts, chart-integrity checks, and decision-grade output format.
  • agents/analyst-reviewer.md follows the same tool set (Read, Grep, Glob, Bash) and model: sonnet convention as sibling reviewers; a "Prompt Defense Baseline" block addresses injection risk from untrusted readout content.
  • The Codex skill count bump (32 → 39) is accurate: the base branch already held 38 skill directories while the README incorrectly said 32; this PR adds one more and corrects the stale header to 39.

Confidence Score: 4/5

Safe to merge; all registration surfaces are complete and consistent, and the skill/agent content follows established repo conventions.

The change is additive-only: new markdown files, manifest entries, and doc count updates. The Codex skill listing table in README.md now reports 39 total but documents only 34 (five pre-existing directories are absent from the table), leaving a gap for users who rely on the table as a complete inventory.

README.md — the Codex skill listing table is missing five entries that exist in .agents/skills/.

Important Files Changed

Filename Overview
skills/analyst-ops/SKILL.md New analyst ops skill: well-structured evidence-first workflow with clear metric contract, comparison checks, chart integrity, and decision-grade output format.
agents/analyst-reviewer.md New review agent with tools ["Read","Grep","Glob","Bash"], model: sonnet (matches repo convention), prompt-defense baseline, and structured finding severity levels — follows the same pattern as code-reviewer.md.
.agents/skills/analyst-ops/agents/openai.yaml Codex openai.yaml interface descriptor — format and $analyst-ops prompt prefix match existing conventions (market-research, api-design, etc.).
agent.yaml analyst-ops added in alphabetical order between ai-regression-testing and android-clean-architecture — correct.
manifests/install-modules.json skills/analyst-ops correctly added to the business-content module paths; description updated to reflect analyst operations.
package.json skills/analyst-ops/ inserted alphabetically in the files array — no other package.json changes.
README.md Counts updated from 67/278 to 68/279 agents/skills. Codex skill table bumped from 32 to 39 (corrects a stale number; actual directory had 38 pre-PR), and analyst-ops row added. Table now lists 34 skills while the header says 39 — 5 entries in .agents/skills/ are missing from the table.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A[User invokes analyst-ops / analyst-reviewer] --> B{Artifact provided?}
    B -- Yes --> C[Read artifact]
    B -- No --> D[git diff via Bash]
    C --> E[1. Pin the decision]
    D --> E
    E --> F[2. Build metric contract\nname / definition / denominator /\ngrain / time window / source]
    F --> G[3. Classify evidence\nfacts / assumptions / inferences /\nrecommendations]
    G --> H[4. Check comparisons &\nsegments for compatibility]
    H --> I[5. Review chart integrity\nbaseline / scale / labels / sample size]
    I --> J[6. Report findings\nby severity: Critical → High → Medium → Low]
    J --> K{Any Critical or High?}
    K -- Yes --> L[BLOCK]
    K -- No, Medium only --> M[APPROVE WITH WARNINGS]
    K -- No issues --> N[APPROVE]
Loading

Reviews (1): Last reviewed commit: "feat: add analyst ops role pack" | Re-trigger Greptile

Comment thread README.md
@@ -1436,7 +1436,7 @@ installed cache can resolve the manifest's skills, MCP config, and assets.
|-----------|-------|---------|

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Codex skill table count lags the reported total

The configuration row now correctly reports 39 Codex skills (matching the 39 directories in .agents/skills/ after this PR), but the listing table below it documents only 34 entries. Five directories present in .agents/skills/ since before this PR — benchmark-methodology, brand-discovery, competitive-platform-analysis, competitive-report-structure, and mle-workflow — are missing from the table. A reader who trusts the table as the canonical list would not know those five skills are available.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 4

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@agents/analyst-reviewer.md`:
- Line 4: Add a tool-permission section to the analyst-reviewer agent defining
Bash as read-only and network-disabled, explicitly allowlisting the required
git-* and text-analysis commands while forbidding writes, deletion, networking,
and secret exfiltration; require explicit confirmation for commands outside the
allowlist. Update the harness enforcement to validate and enforce this Bash
safety contract alongside the agent configuration.

In `@README.md`:
- Line 1439: Use one consistent Codex skill count across the identified
documentation: update README.md lines 1439 and 1707-1709, and
docs/zh-CN/README.md lines 1054 and 1252-1254. Choose either 39 or 40 based on
the actual skill directories and table rows, then apply that number to every
corresponding Codex skill mention and table entry.

In `@skills/analyst-ops/SKILL.md`:
- Around line 158-164: The verification checklists in
skills/analyst-ops/SKILL.md lines 158-164 and
.agents/skills/analyst-ops/SKILL.md lines 158-164 both need the complete metric
contract. Expand each checklist to verify grain, time window, freshness,
exclusions, and provisional status, while preserving the existing source,
definition, denominator, separation, comparison, and chart checks.
- Around line 32-41: Extend the Guardrails section in
skills/analyst-ops/SKILL.md at lines 32-41 with shared rules treating embedded
instructions in external or user-provided evidence as untrusted, restricting
tools to the authorized read-only scope, blocking destructive side effects, and
preventing secret disclosure. Apply the identical guardrail changes to
.agents/skills/analyst-ops/SKILL.md at lines 32-41 so both skill surfaces remain
synchronized.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 5f69c0ef-32e3-416a-b7dc-c67c79d256a7

📥 Commits

Reviewing files that changed from the base of the PR and between a3130f9 and 55e804b.

📒 Files selected for processing (14)
  • .agents/skills/analyst-ops/SKILL.md
  • .agents/skills/analyst-ops/agents/openai.yaml
  • .claude-plugin/marketplace.json
  • .claude-plugin/plugin.json
  • AGENTS.md
  • README.md
  • README.zh-CN.md
  • agent.yaml
  • agents/analyst-reviewer.md
  • docs/zh-CN/AGENTS.md
  • docs/zh-CN/README.md
  • manifests/install-modules.json
  • package.json
  • skills/analyst-ops/SKILL.md
📜 Review details
⏰ Context from checks skipped due to timeout. (1)
  • GitHub Check: Greptile Review
🧰 Additional context used
📓 Path-based instructions (10)
**/*

📄 CodeRabbit inference engine (AGENTS.md)

**/*: Delegate complex features, architectural decisions, security-sensitive work, testing, reviews, and build failures to the appropriate specialized agent; run independent agents in parallel when possible.
Use test-driven development for new features and bug fixes: write a failing test first, implement the minimum passing solution, then refactor and verify at least 80% coverage.
Before any commit, prevent hardcoded secrets, validate inputs, use parameterized SQL, sanitize HTML, enable CSRF protection, verify authentication and authorization, rate-limit endpoints, and avoid leaking sensitive information in errors.
Never hardcode secrets; use environment variables or a secret manager, validate required secrets at startup, and immediately rotate exposed secrets.
If a security issue is found, stop, use the security-reviewer agent, fix critical issues, rotate exposed secrets, and review the codebase for similar issues.
Always preserve immutability: create new objects and return modified copies instead of mutating existing objects.
Organize code into many small, focused files by feature or domain, maintaining high cohesion and low coupling; typical files should be 200–400 lines and must not exceed 800 lines.
Handle errors at every level, provide user-friendly UI messages, log detailed server-side context, and never silently swallow errors.
Validate all user input at system boundaries with schema-based validation, fail fast with clear messages, and never trust external data.
Keep functions under 50 lines, files focused and under 800 lines, avoid nesting deeper than four levels, avoid hardcoded values, and use readable, well-named identifiers.
Troubleshoot test failures by checking test isolation, verifying mocks, and fixing the implementation rather than changing tests unless the tests are incorrect.
For development workflow, plan complex work with the planner agent, use TDD, run code review immediately after modifications, and address critical or high-severity finding...

Files:

  • README.zh-CN.md
  • agent.yaml
  • package.json
  • manifests/install-modules.json
  • docs/zh-CN/AGENTS.md
  • AGENTS.md
  • skills/analyst-ops/SKILL.md
  • agents/analyst-reviewer.md
  • README.md
  • docs/zh-CN/README.md
**/*.{js,ts,jsx,tsx,py,java,cs,rb,go,php,swift,kt,rs,c,cpp,h,hpp,properties,yml,yaml,json,env,config}

📄 CodeRabbit inference engine (.cursor/rules/common-security.md)

NEVER hardcode secrets in source code - ALWAYS use environment variables or a secret manager

Files:

  • agent.yaml
  • package.json
  • manifests/install-modules.json
{package.json,*.config.js,scripts/**/*.js}

📄 CodeRabbit inference engine (CLAUDE.md)

Package manager detection should support npm, pnpm, yarn, and bun, with configuration via CLAUDE_PACKAGE_MANAGER environment variable or project config.

Files:

  • package.json
**/*.{js,ts,jsx,tsx,json,env*}

📄 CodeRabbit inference engine (.github/copilot-instructions.md)

Do not hardcode secrets, API keys, passwords, or tokens

Files:

  • package.json
  • manifests/install-modules.json
docs/zh-CN/**/*

📄 CodeRabbit inference engine (docs/zh-CN/AGENTS.md)

docs/zh-CN/**/*: 所有用户输入和外部数据必须在系统边界进行基于模式的验证,快速失败并提供清晰错误信息。
不得硬编码 API 密钥、密码或令牌;应使用环境变量或密钥管理器,并在启动时验证所需密钥。
防止 SQL 注入,数据库查询必须使用参数化查询。
防止 XSS,输出 HTML 前必须进行适当清理。
启用 CSRF 保护,并验证身份认证与授权。
所有端点都必须有限速,错误消息不得泄露敏感数据。
发现安全问题时应停止常规工作,使用安全审查代理,修复严重问题并轮换暴露的密钥,同时检查类似问题。
总是创建新对象,永不修改现有对象;需要变更时返回带有修改内容的新副本。
错误必须在每个层级处理:UI 提供用户友好消息,服务器记录详细上下文,绝不静默忽略错误。
函数应小于 50 行,文件应专注且小于 800 行,避免超过四层深度嵌套,并使用可读且命名良好的标识符。
提交采用约定式格式 <type>: <description>,其中 type 为 feat、fix、refactor、docs、test、chore、perf 或 ci。

Files:

  • docs/zh-CN/AGENTS.md
  • docs/zh-CN/README.md
skills/**/*.md

📄 CodeRabbit inference engine (CLAUDE.md)

Skills should be formatted as Markdown with clear sections for When to Use, How It Works, and Examples.

Files:

  • skills/analyst-ops/SKILL.md
{agents,skills,commands}/**/*.md

📄 CodeRabbit inference engine (CLAUDE.md)

Use lowercase filenames with hyphens (e.g., python-reviewer.md, tdd-workflow.md) for agents, skills, and commands.

Files:

  • skills/analyst-ops/SKILL.md
  • agents/analyst-reviewer.md
{skills,commands,agents,rules}/**

⚙️ CodeRabbit configuration file

{skills,commands,agents,rules}/**: Focus on prompt-injection resilience, tool-permission scope, destructive action guards, and secret exfiltration risks.

Files:

  • skills/analyst-ops/SKILL.md
  • agents/analyst-reviewer.md
agents/**/*.md

📄 CodeRabbit inference engine (CLAUDE.md)

Agents should be formatted as Markdown with YAML frontmatter containing name, description, tools, and model fields.

Files:

  • agents/analyst-reviewer.md
README.md

📄 CodeRabbit inference engine (CLAUDE.md)

When working on README.md files, use the /readme skill.

Files:

  • README.md
🧠 Learnings (3)
📓 Common learnings
Learnt from: CR
Repo: affaan-m/ECC

Timestamp: 2026-07-23T19:07:33.451Z
Learning: 复杂功能或重构前先进行规划,识别依赖关系与风险并分阶段执行。
Learnt from: CR
Repo: affaan-m/ECC

Timestamp: 2026-07-23T19:07:33.451Z
Learning: 新功能和错误修复采用测试驱动开发:先写失败测试,再实现最小功能,最后重构并验证覆盖率。
Learnt from: CR
Repo: affaan-m/ECC

Timestamp: 2026-07-23T19:07:33.451Z
Learning: 错误排查应先检查测试隔离和模拟,再修复实现,而不是修改测试(除非测试本身错误)。
Learnt from: CR
Repo: affaan-m/ECC

Timestamp: 2026-07-23T19:07:33.451Z
Learning: 代码修改后立即进行代码审查,并解决 CRITICAL/HIGH 级别问题;安全敏感代码应进行安全审查。
Learnt from: CR
Repo: affaan-m/ECC

Timestamp: 2026-07-23T19:07:33.451Z
Learning: 团队或项目知识应记录在项目现有文档结构中;个人调试笔记和临时上下文使用自动记忆,避免重复记录。
Learnt from: CR
Repo: affaan-m/ECC

Timestamp: 2026-07-23T19:07:33.451Z
Learning: PR 应分析完整提交历史,包含全面摘要和测试计划,并使用 `-u` 标志推送。
Learnt from: CR
Repo: affaan-m/ECC

Timestamp: 2026-07-23T19:07:33.451Z
Learning: API 响应应使用一致信封格式,包含成功指示器、数据负载、错误消息和分页元数据。
Learnt from: CR
Repo: affaan-m/ECC

Timestamp: 2026-07-23T19:07:33.451Z
Learning: 将数据访问封装在包含 findAll、findById、create、update、delete 的标准仓储接口后,业务逻辑依赖抽象接口而非具体存储机制。
Learnt from: CR
Repo: affaan-m/ECC

Timestamp: 2026-07-23T19:07:33.451Z
Learning: 大型重构和多文件功能应避免使用上下文窗口最后 20%;低敏感度的单次编辑、文档和简单修复可使用更高利用率。
Learnt from: CR
Repo: affaan-m/ECC

Timestamp: 2026-07-23T19:07:33.451Z
Learning: 构建失败时使用构建错误解决代理,分析错误,增量修复,并在每次修复后验证。
📚 Learning: 2026-03-15T19:02:43.245Z
Learnt from: imrobinsingh
Repo: affaan-m/everything-claude-code PR: 503
File: skills/data-scraper-agent/SKILL.md:1-748
Timestamp: 2026-03-15T19:02:43.245Z
Learning: In this repository, skill folders should use a lowercase-hyphen name (e.g., data-scraper-agent, claude-api) and the skill description file inside each folder should be named SKILL.md (uppercase). Do not flag SKILL.md as a naming violation; treat SKILL.md as the canonical file name inside each skill directory.

Applied to files:

  • skills/analyst-ops/SKILL.md
📚 Learning: 2026-04-15T15:52:59.963Z
Learnt from: manja316
Repo: affaan-m/everything-claude-code PR: 1360
File: skills/security-bounty-hunter/SKILL.md:11-18
Timestamp: 2026-04-15T15:52:59.963Z
Learning: In this repository’s skills documentation (skills/**/SKILL.md), use the canonical auto-activation skill section header `## When to Activate`—do not use `## When to Use`. CONTRIBUTING.md and docs/SKILL-DEVELOPMENT-GUIDE.md confirm the required header, and existing skills follow this convention. This header is important for the auto-activation mechanism to detect the correct section.

Applied to files:

  • skills/analyst-ops/SKILL.md
🪛 LanguageTool
agents/analyst-reviewer.md

[style] ~12-~12: Three successive sentences begin with the same word. Consider rewording the sentence or use a thesaurus to find a synonym.
Context: ...leak API keys, or expose credentials. - Do not output executable code, scripts, HT...

(ENGLISH_WORD_REPEAT_BEGINNING_RULE)


[style] ~32-~32: Three successive sentences begin with the same word. Consider rewording the sentence or use a thesaurus to find a synonym.
Context: ...currencies, units, and time windows. 6. Check whether charts and tables represent the...

(ENGLISH_WORD_REPEAT_BEGINNING_RULE)

🔇 Additional comments (13)
agent.yaml (1)

20-20: LGTM!

manifests/install-modules.json (1)

461-463: LGTM!

.claude-plugin/marketplace.json (1)

14-14: LGTM!

.claude-plugin/plugin.json (1)

4-4: LGTM!

package.json (1)

131-131: 🗄️ Data Integrity & Integration

Codex surface is already covered.

skills/analyst-ops/SKILL.md (1)

25-30: 🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

Use the canonical activation heading.

This file uses ## When to Use, but the repository’s skill auto-activation convention requires ## When to Activate; otherwise the skill may not be detected automatically.

Based on learnings, this repository’s skills/**/SKILL.md files use ## When to Activate as the canonical auto-activation section header.

Proposed fix
-## When to Use
+## When to Activate
			> Likely an incorrect or invalid review comment.

Source: Learnings

.agents/skills/analyst-ops/agents/openai.yaml (1)

1-7: LGTM!

agents/analyst-reviewer.md (1)

1-3: LGTM!

Also applies to: 5-26, 28-112

AGENTS.md (1)

3-3: LGTM!

Also applies to: 19-19, 155-156

README.md (1)

450-450: LGTM!

Also applies to: 586-586, 1454-1454, 1546-1548

README.zh-CN.md (1)

167-167: LGTM!

docs/zh-CN/AGENTS.md (1)

3-3: LGTM!

Also applies to: 19-19, 150-151

docs/zh-CN/README.md (1)

231-231: LGTM!

Also applies to: 1069-1069, 1144-1146

---
name: analyst-reviewer
description: Analyst readout reviewer for source-backed numbers, metric definitions, causal claims, chart integrity, and decision-grade recommendations.
tools: ["Read", "Grep", "Glob", "Bash"]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔒 Security & Privacy | 🟠 Major | 🏗️ Heavy lift

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "== Locate agent file =="
git ls-files | grep -F 'agents/analyst-reviewer.md' || true

echo "== File contents =="
if [ -f agents/analyst-reviewer.md ]; then
  cat -n agents/analyst-reviewer.md
fi

echo "== Search for harness/config references to agents/Bash and sandboxing =="
rg -n --hidden --glob '!node_modules' --glob '!dist' --glob '!build' \
  'agents|Bash|sandbox|read.only|read-only|no-?network|secret|prompt-injection|prompt injection|allowlist|tools:' . | head -n 200

Repository: affaan-m/ECC

Length of output: 33654


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "== agent config files with Bash and possible guardrails =="
git ls-files 'agents/*.md' '.codex/agents/*.toml' '.claude/commands/*.md' '.claude/workflows/*.js' 'hooks/hooks.json' | \
  while read -r f; do
    if rg -n '^tools:|allowed_tools:|tools=|GANDALF|GANDALF_TOKEN|GANDALF_API_|Gandalf|bark|Bark|ecc-agentshield|agentshield|sandbox|allowlist|no-?network|read.only|Read Only|secrets|secret' "$f" >/dev/null; then
      echo "--- $f"
      rg -n -C 2 '^tools:|allowed_tools:|tools=|GANDALF|Gandalf|bark|Bark|ecc-agentshield|agentshield|sandbox|allowlist|no-?network|read.only|Read Only|secrets|secret' "$f" | head -n 80
    fi
  done

echo "== inspect hooks executor snippets =="
sed -n '130,190p' hooks/README.md 2>/dev/null || true
rg -n -C 4 'tool_name|Bash|command|exec|spawn|sandbox|allowlist' hooks -g '*.*' | head -n 240

Repository: affaan-m/ECC

Length of output: 50371


Add an explicit Bash safety contract to this agent.

agents/analyst-reviewer.md grants Bash and then invokes git diff --stat / git diff on untrusted review inputs; copy-pasted artifacts can therefore contain attacker-controlled prompt text or commands. Add a tool-permission section that makes Bash read-only with no network access, lists allowed git-* and text-analysis commands, forbids write/delete/network/secret-exfiltration commands, and requires explicit confirmation for anything outside that allowlist. Verify the harness enforces those constraints too.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@agents/analyst-reviewer.md` at line 4, Add a tool-permission section to the
analyst-reviewer agent defining Bash as read-only and network-disabled,
explicitly allowlisting the required git-* and text-analysis commands while
forbidding writes, deletion, networking, and secret exfiltration; require
explicit confirmation for commands outside the allowlist. Update the harness
enforcement to validate and enforce this Bash safety contract alongside the
agent configuration.

Source: Path instructions

Comment thread README.md
| Config | 1 | `.codex/config.toml` — top-level approvals/sandbox/web_search, MCP servers, notifications, profiles |
| AGENTS.md | 2 | Root (universal) + `.codex/AGENTS.md` (Codex-specific supplement) |
| Skills | 32 | `.agents/skills/` — SKILL.md + agents/openai.yaml per skill |
| Skills | 39 | `.agents/skills/` — SKILL.md + agents/openai.yaml per skill |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "== repo files =="
git ls-files | rg '(^|/)README\.md$|(^|/)README_zh-CN\.md$|(^|/)README\.md$|docs/zh-CN/README\.md$|\.agents/skills|AGENTS\.md$|openai\.yaml$|SKILL\.md$' | sed -n '1,200p'

echo
echo "== skill directories =="
if [ -d .agents/skills ]; then
  find .agents/skills -maxdepth 1 -type d ! -name .agents/skills | sort | wc -l
  find .agents/skills -maxdepth 1 -type d ! -name .agents/skills -print | sort | sed -n '1,120p'
fi

echo
echo "== README skill count mentions =="
for f README.md docs/zh-CN/README.md; do
  [ -f "$f" ] || continue
  echo "--- $f ---"
  rg -n "Skills|技能|[0-9]+\s*\.\s*|\bSKILL|openai\.yaml|native|原生|AGENTS" "$f" | sed -n '1,220p'
done

echo
echo "== focused line context =="
for f README.md docs/zh-CN/README.md; do
  [ -f "$f" ] || continue
  echo "--- $f lines 1410-1465 / 1025-1065 ---"
  nl -ba "$f" | sed -n '1410,1465p'
  [ "$f" = "docs/zh-CN/README.md" ] || true
  if [ "$f" = "README.md" ]; then
    nl -ba "$f" | sed -n '1685,1715p'
  fi
  if [ "$f" = "docs/zh-CN/README.md" ]; then
    nl -ba "$f" | sed -n '1235,1262p'
  fi
done

Repository: affaan-m/ECC

Length of output: 9722


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "== skill counts =="
python3 - <<'PY'
import pathlib
for root in ["README.md", "docs/zh-CN/README.md"]:
    p=pathlib.Path(root)
    print(f"--- {root} ---")
    if p.exists():
        for line_no, line in enumerate(p.read_text(encoding="utf-8").splitlines(),1):
            if "Skill" in line or "技能" in line or "native" in line or "原生" in line or "39" in line or "34" in line or "33" in line or "10" in line:
                print(f"{line_no}: {line}")
    else:
        print("missing")
print("package dir count:", sum(1 for p in pathlib.Path(".agents/skills").iterdir() if p.is_dir()))
print("SKILL count:", sum(1 for p in pathlib.Path(".agents/skills").rglob("SKILL.md")))
PY

echo
echo "== focused context =="
for f README.md docs/zh-CN/README.md; do
  [ -f "$f" ] || continue
  echo "--- $f skill list context ---"
  nl -ba "$f" | sed -n '660,730p;1020,1075p;1235,1265p'
done

Repository: affaan-m/ECC

Length of output: 11882


Decide whether the Codex skill count is 39 or 40, then apply the same number to all Codex skill mentions.

.agents/skills contains 39 skill directories and 39 SKILL.md files, but the English and Chinese Codex docs state | Skills | 39 | while showing 40 rows in the skill table. Apply that label consistently across README.md and docs/zh-CN/README.md.

📍 Affects 2 files
  • README.md#L1439-L1439 (this comment)
  • README.md#L1707-L1709
  • docs/zh-CN/README.md#L1054-L1054
  • docs/zh-CN/README.md#L1252-L1254
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@README.md` at line 1439, Use one consistent Codex skill count across the
identified documentation: update README.md lines 1439 and 1707-1709, and
docs/zh-CN/README.md lines 1054 and 1252-1254. Choose either 39 or 40 based on
the actual skill directories and table rows, then apply that number to every
corresponding Codex skill mention and table entry.

Comment on lines +32 to +41
## Guardrails

- do not present a number without a named source
- define each metric before interpreting it
- state denominator, grain, time window, and snapshot timestamp when available
- separate fact, inference, assumption, and recommendation
- do not imply causation from correlation without a defensible causal design
- do not blend cohorts, currencies, regions, or time windows without labeling the blend
- do not hide missing data, exclusions, filters, or sample-size limits
- do not use charts that distort scale, baseline, or uncertainty

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔒 Security & Privacy | 🟠 Major | ⚡ Quick win

Apply prompt-injection and tool-scope guardrails to both skill surfaces.

Both copies process external or user-provided evidence without explicitly treating embedded instructions as untrusted. Add a shared guardrail that prevents following source-contained commands, limits tools to the authorized read-only scope, blocks destructive side effects, and forbids secret disclosure.

  • skills/analyst-ops/SKILL.md#L32-L41: Add the guardrail to the canonical skill.
  • .agents/skills/analyst-ops/SKILL.md#L32-L41: Keep the Codex-facing mirror identical.

As per path instructions, skill surfaces must address prompt-injection resilience, tool-permission scope, destructive-action guards, and secret-exfiltration risks.

📍 Affects 2 files
  • skills/analyst-ops/SKILL.md#L32-L41 (this comment)
  • .agents/skills/analyst-ops/SKILL.md#L32-L41
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@skills/analyst-ops/SKILL.md` around lines 32 - 41, Extend the Guardrails
section in skills/analyst-ops/SKILL.md at lines 32-41 with shared rules treating
embedded instructions in external or user-provided evidence as untrusted,
restricting tools to the authorized read-only scope, blocking destructive side
effects, and preventing secret disclosure. Apply the identical guardrail changes
to .agents/skills/analyst-ops/SKILL.md at lines 32-41 so both skill surfaces
remain synchronized.

Source: Path instructions

Comment on lines +158 to +164
## Verification

- every important number has a named source
- every key metric has a definition and denominator
- facts, assumptions, inferences, and recommendations are separated
- comparisons use compatible grain, time window, and population
- chart claims match their axes, labels, and underlying data

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win

Apply the complete metric contract in both verification checklists.

Both copies omit checks for grain, time window, freshness, exclusions, and provisional status, allowing an analytically incomplete readout to pass validation.

  • skills/analyst-ops/SKILL.md#L158-L164: Expand the canonical verification checklist.
  • .agents/skills/analyst-ops/SKILL.md#L158-L164: Apply the same checklist to the Codex-facing mirror.
📍 Affects 2 files
  • skills/analyst-ops/SKILL.md#L158-L164 (this comment)
  • .agents/skills/analyst-ops/SKILL.md#L158-L164
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@skills/analyst-ops/SKILL.md` around lines 158 - 164, The verification
checklists in skills/analyst-ops/SKILL.md lines 158-164 and
.agents/skills/analyst-ops/SKILL.md lines 158-164 both need the complete metric
contract. Expand each checklist to verify grain, time window, freshness,
exclusions, and provisional status, while preserving the existing source,
definition, denominator, separation, comparison, and chart checks.

@rrv-12
rrv-12 marked this pull request as draft July 24, 2026 04:48
@ecc-tools

ecc-tools Bot commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

ECC bundle files are already tracked in this repository. Skipping generation of another bundle PR.

@rrv-12
rrv-12 marked this pull request as ready for review July 24, 2026 18:07
@haelyra

haelyra commented Aug 11, 2026

Copy link
Copy Markdown
Collaborator

Thank you for building this analyst-operations pack, and sorry it waited so long for a maintainer review. A focused workflow for turning messy operational data into auditable findings, with a reviewer that checks evidence and uncertainty, would be genuinely useful in ECC.

We would love another focused pass with these changes:

  • Reconcile the catalog from current main. This head contains 68 agents and 280 skills, while ten count surfaces still report 279 skills and the marketplace still reports 67 agents and 279 skills. Regenerating the catalog and resolving the current conflicts will keep the pack from overwriting newer ECC metadata.
  • Bound the reviewer tool contract. The new reviewer can invoke Bash without a read-only command boundary. Please constrain it to evidence inspection and local validation, with explicit approval before any mutation or external action, so an analysis review cannot unexpectedly change a project.
  • Verify the shipped surfaces. The individual skill and agent validators pass, but the catalog check fails and the full suite was not run. Success is a current-main branch where the catalog, install manifest, package contents, agent and skill validators, and relevant full-suite checks all agree that the new pack ships.

If you do not have bandwidth for this pass, we will keep the analyst-ops idea in the maintainer queue and carry it forward after the next release with attribution. Thank you again for the substantial contribution.

@github-actions

Copy link
Copy Markdown

This PR is stale due to inactivity.

@github-actions github-actions Bot added the stale No activity for 30+ days label Sep 14, 2026
@rrv-12

rrv-12 commented Sep 18, 2026

Copy link
Copy Markdown
Author

Thank you for building this analyst-operations pack, and sorry it waited so long for a maintainer review. A focused workflow for turning messy operational data into auditable findings, with a reviewer that checks evidence and uncertainty, would be genuinely useful in ECC.

We would love another focused pass with these changes:

  • Reconcile the catalog from current main. This head contains 68 agents and 280 skills, while ten count surfaces still report 279 skills and the marketplace still reports 67 agents and 279 skills. Regenerating the catalog and resolving the current conflicts will keep the pack from overwriting newer ECC metadata.
  • Bound the reviewer tool contract. The new reviewer can invoke Bash without a read-only command boundary. Please constrain it to evidence inspection and local validation, with explicit approval before any mutation or external action, so an analysis review cannot unexpectedly change a project.
  • Verify the shipped surfaces. The individual skill and agent validators pass, but the catalog check fails and the full suite was not run. Success is a current-main branch where the catalog, install manifest, package contents, agent and skill validators, and relevant full-suite checks all agree that the new pack ships.

If you do not have bandwidth for this pass, we will keep the analyst-ops idea in the maintainer queue and carry it forward after the next release with attribution. Thank you again for the substantial contribution.

Hey Thank You for the promising response, due to some medical issues i was not active on github but now since I am all active I can dedicatedly contribute to your another changes, just give me some time to jump back in

@rrv-12
rrv-12 marked this pull request as draft September 18, 2026 15:09
@github-actions github-actions Bot removed the stale No activity for 30+ days label Sep 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants