The state's new Attorney-General, Mark Speakman, will announce a $6 million rescue package for community legal centres to fix a federal government funding shortfall that was set to plunge the sector into crisis.

In one of his first decisions in his new role, Mr Speakman will announce the two-year funding boost on Wednesday.

NSW Attorney-General Mark Speakman said 73 per cent of criminal cases in the District Court were resolved with a guilty plea. Credit:Louie Douvis

Community legal centres, which provide free legal advice to vulnerable and disadvantaged groups, were facing a wave of job losses and closures from July 1 as federal funding was set to be slashed by 30 per cent.

In NSW, this translated to a cut of about $3 million a year.