Repository navigation
Conversation
📝 WalkthroughWalkthroughAdds the ChangesAnalyst operations surface
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
|
ECC bundle files are already tracked in this repository. Skipping generation of another bundle PR. |
|
| 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]
Reviews (1): Last reviewed commit: "feat: add analyst ops role pack" | Re-trigger Greptile
| @@ -1436,7 +1436,7 @@ installed cache can resolve the manifest's skills, MCP config, and assets. | |||
| |-----------|-------|---------| | |||
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
📒 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.jsonAGENTS.mdREADME.mdREADME.zh-CN.mdagent.yamlagents/analyst-reviewer.mddocs/zh-CN/AGENTS.mddocs/zh-CN/README.mdmanifests/install-modules.jsonpackage.jsonskills/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.mdagent.yamlpackage.jsonmanifests/install-modules.jsondocs/zh-CN/AGENTS.mdAGENTS.mdskills/analyst-ops/SKILL.mdagents/analyst-reviewer.mdREADME.mddocs/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.yamlpackage.jsonmanifests/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.jsonmanifests/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.mddocs/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.mdagents/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.mdagents/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
/readmeskill.
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 & IntegrationCodex surface is already covered.
skills/analyst-ops/SKILL.md (1)
25-30: 🎯 Functional Correctness | 🟠 Major | ⚡ Quick winUse 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.mdfiles use## When to Activateas 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"] |
There was a problem hiding this comment.
🔒 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 200Repository: 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 240Repository: 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
| | 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 | |
There was a problem hiding this comment.
📐 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
doneRepository: 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'
doneRepository: 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-L1709docs/zh-CN/README.md#L1054-L1054docs/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.
| ## 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 |
There was a problem hiding this comment.
🔒 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
| ## 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 |
There was a problem hiding this comment.
🗄️ 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.
|
ECC bundle files are already tracked in this repository. Skipping generation of another bundle PR. |
|
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:
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. |
|
This PR is stale due to inactivity. |
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 |
What Changed
Added the first scoped non-technical role pack for analyst operations.
This PR adds:
skills/analyst-ops/SKILL.mdas the canonical analyst operations skillagents/analyst-reviewer.mdas the review agent for analyst readouts.agents/skills/analyst-ops/plusagents/openai.yamlfor the Codex-facing skill surfaceanalyst-opsregistration inagent.yamlpackage.jsonmanifests/install-modules.jsonWhy 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
node tests/run-all.js)Passed locally:
node scripts/ci/validate-skills.jsnode scripts/ci/validate-agents.jsnode tests/ci/codex-skill-surface.test.jsnode scripts/ci/catalog.js --textnode scripts/ci/generate-command-registry.js --checknode scripts/ci/validate-no-personal-paths.jsgit diff --checkFull
node tests/run-all.jsdid not complete locally because this Windows environment has no installed dependencies / package-manager binary available, and dependency-backed checks requiringajvfailed. The broader test run also hit existing Windows/path-space related failures unrelated to this PR.Type of Change
fix:Bug fixfeat:New featurerefactor:Code refactoringdocs:Documentationtest:Testschore:Maintenance/toolingci:CI/CD changesSecurity & Quality Checklist
If you changed dependencies or
package.json(bin/files/ deps)yarn install --mode=update-lockfileand committed theyarn.lockchange. CI runs Yarn in hardened mode on public PRs and fails if the lockfile would be modified, so an out of dateyarn.lockbreaks the build even when nothing else is wrong.No dependency changes were made.
package.jsonwas only updated to include the new skill path in the publish surface.If you added a skill, command, agent, hook, or CLI tool
package.json(files),manifests/install-modules.json, andagent.yamlnode scripts/ci/catalog.js --write --text)node scripts/ci/generate-command-registry.js --check)README.md,AGENTS.md,docs/zh-CN/README.md,docs/zh-CN/AGENTS.md).agents/skills/analyst-ops/plusagents/openai.yaml)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
No code logic was added, so code comments were not applicable.