Token导航 LogoToken导航

Agent Skill · 研究检索

testing-deployment-implementation(测试部署实施)

用于辅助云资源、部署、容器、基础设施和运维自动化任务。它适合让 Agent 检查配置、整理部署步骤、分析资源状态、生成排障思路或辅助云服务接入。使用时需要明确目标环境、账号权限、区域和资源组,区分本地测试与生产操作;涉及删除资源、重启服务、修改网络或权限配置时,应先确认影响范围。

testing-deployment-implementation 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证为 MIT,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 60,816。

总安装 364周安装 15GitHub Stars 6下载 119核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:testing-deployment-implementation(测试部署实施)
来源仓库:https://github.com/pluginagentmarketplace/custom-plugin-angular
仓库路径:skills/testing-deployment-implementation
安装命令:
npx skills add https://github.com/pluginagentmarketplace/custom-plugin-angular --skill testing-deployment-implementation
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/pluginagentmarketplace/custom-plugin-angular --skill testing-deployment-implementation

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

用于云原生应用部署流程的设计与验证。适合编排容器镜像、服务网格与 Ingress 配置。支持 Helm Chart 或 Kustomize 模板生成建议。需确认 Kubernetes 集群权限与命名空间隔离策略。

testing-deployment-implementation 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/testing-deployment-implementation

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/pluginagentmarketplace/custom-plugin-angular -…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

testing-deployment-implementation 怎么安装?

在终端执行 npx skills add https://github.com/pluginagentmarketplace/custom-plugin-angular --skill tes…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

testing-deployment-implementation 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

testing-deployment-implementation 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

testing-deployment-implementation 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

testing-deployment-implementation 用的人多吗?

公开数据是累计安装 364 次,近一周安装 15 次,下载 119 次,GitHub 6 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

testing-deployment-implementation 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 3 个目录同时收录,说明这个 Skill 流传比较广。
  • 许可证明确为 MIT,商用和分发边界好判断。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。
  • 需要许可证清楚、并且有第三方扫描结果的团队项目。

不太适合

  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
testing-deployment-implementation

测试部署实施 · 本页

3646需要联网MIT通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Testing & Deployment Implementation Skill

Unit Testing Basics

TestBed Setup

import { TestBed } from '@angular/core/testing';
import { HttpClientTestingModule, HttpTestingController } from '@angular/common/http/testing';

describe('UserService', () => {
  let service: UserService;
  let httpMock: HttpTestingController;

  beforeEach(() => {
    TestBed.configureTestingModule({
      imports: [HttpClientTestingModule],
      providers: [UserService]
    });

    service = TestBed.inject(UserService);
    httpMock = TestBed.inject(HttpTestingController);
  });

  afterEach(() => {
    httpMock.verify();
  });
});

Component Testing

describe('UserListComponent', () => {
  let component: UserListComponent;
  let fixture: ComponentFixture<UserListComponent>;

  beforeEach(async () => {
    await TestBed.configureTestingModule({
      declarations: [UserListComponent],
      imports: [CommonModule, HttpClientTestingModule],
      providers: [UserService]
    }).compileComponents();

    fixture = TestBed.createComponent(UserListComponent);
    component = fixture.componentInstance;
  });

  it('should display users', () => {
    const mockUsers: User[] = [
      { id: 1, name: 'John' },
      { id: 2, name: 'Jane' }
    ];

    component.users = mockUsers;
    fixture.detectChanges();

    const compiled = fixture.nativeElement as HTMLElement;
    const userElements = compiled.querySelectorAll('.user-item');
    expect(userElements.length).toBe(2);
  });

  it('should call service on init', () => {
    const userService = TestBed.inject(UserService);
    spyOn(userService, 'getUsers').and.returnValue(of([]));

    component.ngOnInit();

    expect(userService.getUsers).toHaveBeenCalled();
  });
});

Testing Async Operations

// Using fakeAsync and tick
it('should load users after delay', fakeAsync(() => {
  const userService = TestBed.inject(UserService);
  spyOn(userService, 'getUsers').and.returnValue(
    of([{ id: 1, name: 'John' }]).pipe(delay(1000))
  );

  component.ngOnInit();
  expect(component.users.length).toBe(0);

  tick(1000);
  expect(component.users.length).toBe(1);
}));

// Using waitForAsync
it('should handle async operations', waitForAsync(() => {
  const userService = TestBed.inject(UserService);
  spyOn(userService, 'getUsers').and.returnValue(
    of([{ id: 1, name: 'John' }])
  );

  component.ngOnInit();
  fixture.whenStable().then(() => {
    expect(component.users.length).toBe(1);
  });
}));

Mocking Services

HTTP Mocking

it('should fetch users from API', () => {
  const mockUsers: User[] = [{ id: 1, name: 'John' }];

  service.getUsers().subscribe(users => {
    expect(users.length).toBe(1);
    expect(users[0].name).toBe('John');
  });

  const req = httpMock.expectOne('/api/users');
  expect(req.request.method).toBe('GET');
  req.flush(mockUsers);
});

// POST with error handling
it('should handle errors', () => {
  service.createUser({ name: 'Jane' }).subscribe(
    () => fail('should not succeed'),
    (error) => expect(error.status).toBe(400)
  );

  const req = httpMock.expectOne('/api/users');
  req.flush('Invalid user', { status: 400, statusText: 'Bad Request' });
});

Service Mocking

class MockUserService {
  getUsers() {
    return of([
      { id: 1, name: 'John' },
      { id: 2, name: 'Jane' }
    ]);
  }
}

@Component({
  selector: 'app-test',
  template: '<div>{{ (users$ | async)?.length }}</div>'
})
class TestComponent {
  users$ = this.userService.getUsers();
  constructor(private userService: UserService) {}
}

describe('TestComponent with Mock', () => {
  let component: TestComponent;
  let fixture: ComponentFixture<TestComponent>;

  beforeEach(async () => {
    await TestBed.configureTestingModule({
      declarations: [TestComponent],
      providers: [
        { provide: UserService, useClass: MockUserService }
      ]
    }).compileComponents();

    fixture = TestBed.createComponent(TestComponent);
    component = fixture.componentInstance;
    fixture.detectChanges();
  });

  it('should render users', () => {
    const div = fixture.nativeElement.querySelector('div');
    expect(div.textContent).toContain('2');
  });
});

E2E Testing with Cypress

Basic E2E Test

describe('User List Page', () => {
  beforeEach(() => {
    cy.visit('/users');
  });

  it('should display user list', () => {
    cy.get('[data-testid="user-item"]')
      .should('have.length', 10);
  });

  it('should filter users by name', () => {
    cy.get('[data-testid="search-input"]')
      .type('John');

    cy.get('[data-testid="user-item"]')
      .should('have.length', 1)
      .should('contain', 'John');
  });

  it('should navigate to user detail', () => {
    cy.get('[data-testid="user-item"]').first().click();
    cy.location('pathname').should('include', '/users/');
    cy.get('[data-testid="user-detail"]').should('be.visible');
  });
});

Page Object Model

// user.po.ts
export class UserPage {
  navigateTo(path: string = '/users') {
    cy.visit(path);
    return this;
  }

  getUsers() {
    return cy.get('[data-testid="user-item"]');
  }

  getUserByName(name: string) {
    return cy.get('[data-testid="user-item"]').contains(name);
  }

  clickUser(index: number) {
    this.getUsers().eq(index).click();
    return this;
  }

  searchUser(query: string) {
    cy.get('[data-testid="search-input"]').type(query);
    return this;
  }
}

// Test using PO
describe('User Page', () => {
  const page = new UserPage();

  beforeEach(() => {
    page.navigateTo();
  });

  it('should find user by name', () => {
    page.searchUser('John');
    page.getUsers().should('have.length', 1);
  });
});

Build Optimization

AOT Compilation

// angular.json
{
  "projects": {
    "app": {
      "architect": {
        "build": {
          "options": {
            "aot": true,
            "outputHashing": "all",
            "sourceMap": false,
            "optimization": true,
            "buildOptimizer": true,
            "namedChunks": false
          }
        }
      }
    }
  }
}

Bundle Analysis

# Install webpack-bundle-analyzer
npm install --save-dev webpack-bundle-analyzer

# Run analysis
ng build --stats-json
webpack-bundle-analyzer dist/app/stats.json

Code Splitting

// app-routing.module.ts
const routes: Routes = [
  { path: '', component: HomeComponent },
  {
    path: 'admin',
    loadChildren: () =>
      import('./admin/admin.module').then(m => m.AdminModule)
  },
  {
    path: 'users',
    loadChildren: () =>
      import('./users/users.module').then(m => m.UsersModule)
  }
];

Deployment

Production Build

# Build for production
ng build --configuration production

# Output directory
dist/app/

# Serve locally
npx http-server dist/app/

Deployment Targets

Firebase:

npm install -g firebase-tools
firebase login
firebase init hosting
firebase deploy

Netlify:

npm run build
# Drag and drop dist/ folder to Netlify
# Or use CLI:
npm install -g netlify-cli
netlify deploy --prod --dir=dist/app

GitHub Pages:

ng build --output-path docs --base-href /repo-name/
git add docs/
git commit -m "Deploy to GitHub Pages"
git push
# Enable in repository settings

Docker:

# Build stage
FROM node:18 as build
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build

# Serve stage
FROM nginx:alpine
COPY --from=build /app/dist/app /usr/share/nginx/html
COPY nginx.conf /etc/nginx/nginx.conf
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]

CI/CD Pipelines

GitHub Actions

name: CI/CD

on:
  push:
    branches: [main]
  pull_request:
    branches: [main]

jobs:
  build-and-test:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v3

      - name: Setup Node.js
        uses: actions/setup-node@v3
        with:
          node-version: '18'

      - name: Install dependencies
        run: npm ci

      - name: Lint
        run: npm run lint

      - name: Build
        run: npm run build

      - name: Test
        run: npm run test -- --watch=false --code-coverage

      - name: E2E Test
        run: npm run e2e

      - name: Upload coverage
        uses: codecov/codecov-action@v3
        with:
          files: ./coverage/lcov.info

      - name: Deploy
        if: github.ref == 'refs/heads/main'
        run: npm run deploy

Performance Monitoring

Core Web Vitals

// Using web-vitals library
import { getCLS, getFID, getFCP, getLCP, getTTFB } from 'web-vitals';

getCLS(console.log);
getFID(console.log);
getFCP(console.log);
getLCP(console.log);
getTTFB(console.log);

Error Tracking (Sentry)

import * as Sentry from "@sentry/angular";

Sentry.init({
  dsn: "https://examplePublicKey@o0.ingest.sentry.io/0",
  integrations: [
    new Sentry.BrowserTracing(),
    new Sentry.Replay(),
  ],
  tracesSampleRate: 1.0,
  replaysSessionSampleRate: 0.1,
  replaysOnErrorSampleRate: 1.0,
});

@NgModule({
  providers: [
    {
      provide: ErrorHandler,
      useValue: Sentry.createErrorHandler(),
    },
  ],
})
export class AppModule {}

Testing Best Practices

  1. Arrange-Act-Assert: Clear test structure
  2. One Assertion per Test: Keep tests focused
  3. Test Behavior: Not implementation details
  4. Use Page Objects: For E2E tests
  5. Mock External Dependencies: Services, HTTP
  6. Test Error Cases: Invalid input, failures
  7. Aim for 80% Coverage: Don't obsess over 100%

Coverage Report

# Generate coverage report
ng test --code-coverage

# View report
open coverage/index.html

Resources

平台分布

Claude Code

29.31%
按下载量换算35

windsurf

25.85%
按下载量换算31

OpenCode

17.17%
按下载量换算20

Codex

12.19%
按下载量换算15

Antigravity

8.28%
按下载量换算10

Gemini CLI

3.52%
按下载量换算4

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

继续浏览同类 Skills