Skip to content

feat(skills): add typescript-patterns skill (#543)#717

Closed
affaan-m wants to merge 1 commit intomainfrom
feat/ts-patterns-v2
Closed

feat(skills): add typescript-patterns skill (#543)#717
affaan-m wants to merge 1 commit intomainfrom
feat/ts-patterns-v2

Conversation

@affaan-m
Copy link
Owner

@affaan-m affaan-m commented Mar 20, 2026

Adds TypeScript patterns skill with type safety, generics, async patterns, and project configuration. Matches existing skill format and passes catalog validators.


Summary by cubic

Adds a new typescript-patterns skill with clear patterns for type modeling, runtime validation, and async design. Also makes the CLAW timeout configurable (default 30s) and standardizes MCP startup timeouts.

  • New Features

    • Adds skills/typescript-patterns covering unions, generics, type guards, zod validation, result types, AbortSignal, and React prop typing.
    • Updates docs and counts to 116 skills, and points typescript-reviewer to use the new skill.
    • Adds the skill to manifests/install-modules.json and package.json for install/publish.
  • Refactors

    • CLAW timeout now set via CLAW_TIMEOUT_MS (default 30,000 ms; was 300,000); tests updated to exercise the env-based path.
    • Normalizes MCP server startup_timeout_sec to 30s in .codex/config.toml and the sync script.
    • Makes package.json file list explicit to include the new skill and tighten the published surface.

Written for commit a327f98. Summary will update on new commits.

Summary by CodeRabbit

  • New Features

    • Added TypeScript patterns skill covering type modeling, discriminated unions, validation, async boundaries, and module/API design patterns.
    • Made Claude timeout configurable via environment variable (defaults to 30 seconds).
  • Chores

    • Updated MCP server startup timeout configurations.
    • Updated documentation and skill count references (115 → 116 skills).

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

affaan-m has reached the 50-review limit for trial accounts. To continue receiving code reviews, upgrade your plan.

@ecc-tools
Copy link
Contributor

ecc-tools bot commented Mar 20, 2026

Analyzing 5000 commits...

@ecc-tools
Copy link
Contributor

ecc-tools bot commented Mar 20, 2026

Analysis Complete

Generated ECC bundle from 500 commits | Confidence: 100%

View Pull Request #718

Repository Profile
Attribute Value
Language JavaScript
Framework Not detected
Commit Convention conventional
Test Directory separate
Detected Workflows (9)
Workflow Description
database-migration Database schema changes with migration files
feature-development Standard feature implementation workflow
add-new-skill Adds a new skill to the repository, including documentation and (sometimes) Antigravity/Codex harness support.
add-new-agent Adds a new agent to the repository, with documentation and registration in agent tables.
add-language-rules Adds a new language's ruleset (coding style, hooks, patterns, security, testing) to the repository.
Generated Instincts (17)
Domain Count
git 2
code-style 3
testing 3
workflow 9

After merging, import with:

/instinct-import .claude/homunculus/instincts/inherited/everything-claude-code-instincts.yaml

Files

  • .claude/ecc-tools.json
  • .claude/skills/everything-claude-code/SKILL.md
  • .agents/skills/everything-claude-code/SKILL.md
  • .agents/skills/everything-claude-code/agents/openai.yaml
  • .claude/identity.json
  • .codex/config.toml
  • .codex/AGENTS.md
  • .codex/agents/explorer.toml
  • .codex/agents/reviewer.toml
  • .codex/agents/docs-researcher.toml
  • .claude/homunculus/instincts/inherited/everything-claude-code-instincts.yaml
  • .claude/rules/everything-claude-code-guardrails.md
  • .claude/research/everything-claude-code-research-playbook.md
  • .claude/team/everything-claude-code-team-config.json
  • .claude/enterprise/controls.md
  • .claude/commands/database-migration.md
  • .claude/commands/feature-development.md
  • .claude/commands/add-new-skill.md

ECC Tools | Everything Claude Code

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Mar 20, 2026

Caution

Review failed

Pull request was closed or merged during review

📝 Walkthrough

Walkthrough

This pull request introduces a new typescript-patterns skill with comprehensive TypeScript development guidance, adds configurable startup timeouts to MCP servers throughout the codebase configuration, makes the Claude execution timeout configurable via environment variables, expands the published package contents explicitly, and updates documentation references to reflect the new skill addition.

Changes

Cohort / File(s) Summary
MCP Server Timeout Configuration
.codex/config.toml, scripts/sync-ecc-to-codex.sh
Added startup_timeout_sec = 30.0 to enabled MCP servers (github, context7, memory, playwright, sequential-thinking), and added commented timeout configuration lines to optional servers (supabase, firecrawl, fal-ai, cloudflare). Script updated to write corresponding timeout values during synchronization.
TypeScript Patterns Skill Introduction
skills/typescript-patterns/SKILL.md, agents/typescript-reviewer.md, manifests/install-modules.json
Added comprehensive TypeScript patterns documentation skill covering type modeling, runtime validation, async/error handling, and module patterns. Updated TypeScript reviewer agent reference guidance and added skill to framework-language module paths.
Claude Timeout Configurability
scripts/claw.js, tests/scripts/claw.test.js
Introduced DEFAULT_CLAUDE_TIMEOUT_MS = 30000 and getClaudeTimeoutMs() function to derive timeout from process.env.CLAW_TIMEOUT_MS environment variable. Updated askClaude() to use configurable timeout instead of fixed 5-minute value. Test case updated to set and restore environment variable during execution.
Documentation and Metadata Updates
README.md, AGENTS.md
Updated skill counts from 115 to 116 across documentation. Added skills/typescript-patterns/ directory listing to README's feature breakdown.
Package Distribution Configuration
package.json
Replaced single skills/ whitelist entry with explicit list of skill subdirectories (including skills/typescript-patterns/ and others) and added the-security-guide.md to published package contents.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~22 minutes

Possibly related PRs

Poem

🐰 Hop, hop! Timeouts now tick like carrot clocks,
TypeScript patterns sprouting in our blocks,
Thirty seconds sweet for servers to start,
A new skill born from developer's heart!
Configurations bloom—the warren's complete! 🥕✨

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and specifically summarizes the main change: adding a new typescript-patterns skill, which is the primary focus evident in the file summaries and PR objectives.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/ts-patterns-v2
📝 Coding Plan
  • Generate coding plan for human review comments

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 and usage tips.

@affaan-m
Copy link
Owner Author

Closing — CI failures. TypeScript skill needs catalog count updates to pass validators.

@affaan-m affaan-m closed this Mar 20, 2026
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

1 issue found across 10 files

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="scripts/claw.js">

<violation number="1" location="scripts/claw.js:19">
P2: Default timeout was reduced from 5 minutes to 30 seconds, which can cause premature failures for normal Claude responses.</violation>
</file>

Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.

const SESSION_NAME_RE = /^[a-zA-Z0-9][-a-zA-Z0-9]*$/;
const DEFAULT_MODEL = process.env.CLAW_MODEL || 'sonnet';
const DEFAULT_COMPACT_KEEP_TURNS = 20;
const DEFAULT_CLAUDE_TIMEOUT_MS = 30000;
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot Mar 20, 2026

Choose a reason for hiding this comment

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

P2: Default timeout was reduced from 5 minutes to 30 seconds, which can cause premature failures for normal Claude responses.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At scripts/claw.js, line 19:

<comment>Default timeout was reduced from 5 minutes to 30 seconds, which can cause premature failures for normal Claude responses.</comment>

<file context>
@@ -16,6 +16,7 @@ const readline = require('readline');
 const SESSION_NAME_RE = /^[a-zA-Z0-9][-a-zA-Z0-9]*$/;
 const DEFAULT_MODEL = process.env.CLAW_MODEL || 'sonnet';
 const DEFAULT_COMPACT_KEEP_TURNS = 20;
+const DEFAULT_CLAUDE_TIMEOUT_MS = 30000;
 
 function isValidSessionName(name) {
</file context>
Suggested change
const DEFAULT_CLAUDE_TIMEOUT_MS = 30000;
const DEFAULT_CLAUDE_TIMEOUT_MS = 300000;
Fix with Cubic

@affaan-m affaan-m deleted the feat/ts-patterns-v2 branch March 20, 2026 13:51
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a327f981cb

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

"scripts/session-inspect.js",
"scripts/uninstall.js",
"skills/",
"skills/agent-harness-construction/",

Choose a reason for hiding this comment

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

P1 Badge Preserve all existing skills in the npm package

Replacing the single "skills/" entry with a hard-coded allowlist drops 10 existing root skills from npm pack/registry installs. I verified the packed tarball now omits, for example, skills/context-budget/SKILL.md and skills/rules-distill/SKILL.md, even though commands/context-budget.md and commands/rules-distill.md still point at those paths. That means users installing this release from npm will get commands/docs that reference missing skills, so those workflows break outside a source checkout.

Useful? React with 👍 / 👎.

## Reference

This repo does not yet ship a dedicated `typescript-patterns` skill. For detailed TypeScript and JavaScript patterns, use `coding-standards` plus `frontend-patterns` or `backend-patterns` based on the code being reviewed.
For detailed TypeScript and JavaScript patterns, use `typescript-patterns` alongside `frontend-patterns` or `backend-patterns` based on the code being reviewed.

Choose a reason for hiding this comment

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

P2 Badge Publish typescript-patterns to Codex skill installs

This adds the new skill only under skills/typescript-patterns, but the Codex path loads from .agents/skills (.codex/AGENTS.md) and scripts/sync-ecc-to-codex.sh copies only that directory into ~/.codex/skills. In other words, after this change Codex users still cannot load typescript-patterns, even though this reviewer guide now tells them to use it. Please add the corresponding .agents/skills/typescript-patterns copy (and harness metadata) before advertising the skill here.

Useful? React with 👍 / 👎.

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.

1 participant